All commands (14,187)

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

erase content from a cdrw

Show the PATH, one directory per line
This is useful for examining the path.

Get the SUM of visual blocked digits in vim

Set blanket packet/second limit on network interface for Ubuntu VPS server
VPS server hosts suspect DOS attack if PPS is too high. This limits packets at the interface level. Do "sudo apt-get install iptables-persistent" to make persistent, or, if you already have, reconfigure with "sudo dpkg-reconfigure iptables-persistent"

Send a local file via email
Another way of sending an attachment. -s : subject file : file to be sent

See all the commits for which searchstring appear in the git diff

View details of network activity, malicious or otherwise within a port range.
View details of both TCP and UDP network activity within a specified port range.

rename / move Uppercase filenames to lowercase filenames current directory
move filename/rename filenames with Uppercase to lowercase in current directory

Advanced python tracing
Trace python statement execution and syscalls invoked during that simultaneously

Show bash's function definitions you defined in .bash_profile or .bashrc
If you omit the function name, the command will display all definitions


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: