Commands by viner (3)

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands


Check These Out

Remount a usb disk in Gnome without physically removing and reinserting
Remounts a usb disk /dev/sdb, without having to physically remove and reinsert. (Gnome desktop)

Produce a pseudo random password with given length in base 64
Don't copy trailing '=' or use head -c to limit to desired length.

convert from hexidecimal or octal to decimal
Bash can accept '0x' and '0' notation for hexidecimal and octal numbers, so you just have to output the values.

Go to parent directory of filename edited in last command

combining streams
2>&1 permit to combinate stdout and stderr. grep will catch stderr and stdout instead of stdout only.

Find usb device in realtime
Using this command you can track a moment when usb device was attached.

find established tcp connections without using netstat!!
Fast and easy way to find all established tcp connections without using the netstat command.

Regex to remove HTML-Tags from a file
This regular expression removes all HTML-Tags from the file.

Monitoring sessions that arrive at your server

Repeatedly send a string to stdout-- useful for going through "yes I agree" screens


Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: