Commands by gnpf (1)

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

Convert AVI to iPhone MP4
Fir3net.com

kills rapidly spawning processes that spawn faster than you can repeat the killall command
if you dont want to alias also then you can do killall rapidly_spawning_process ; !! ; !! ; !!

Currency Conversion
eg: currency_convert 1 usd inr

Android PNG screenshot
Works with *rooted* Android devices. 400x800 are the screen dimensions of a typical handheld smartphone.

random git-commit message
Do a git commit using a random message.

Send youtube video to Kodi
Kodi needs the youtube plugin to be installed.

Email a file to yourself
This uses mutt to send the file, and doesn't require uuencode etc

Remove a line from a file using sed (useful for updating known SSH server keys when they change)

Summarize the number of open TCP connections by state
Useful for checking the number and state of TCP connections.

tail: watch a filelog
-f file(s) to be monitorized -n number of last line to be printed on the screen in this example, the content of two files are displayed


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: