Commands using echo (1,545)

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

Remove invalid host keys from ~/.ssh/known_hosts
Useful if you have to tunnel ssh through a local port and it complains of the host key being different. Much easier than manually editing the file.

add an mp3 audio track to a video

Install pip with Proxy
Installs pip packages defining a proxy

Show git branches by date - useful for showing active branches

Identify differences between directories (possibly on different servers)
This can be much faster than downloading one or both trees to a common servers and comparing the files there. After, only those files could be copied down for deeper comparison if needed.

List status of your git repos and let us know if there is any new files to commit.
Source: http://www.bashoneliners.com/oneliners/oneliner/225/

show ALL iptable rules
show your current iptable rules from every available iptable table

Find the package that installed a command

Screensaver
Console screensaver.

Convert camelCase to underscores (camel_case)
Useful for switching over someone else's coding style who uses camelCase notation to your style using all lowercase with underscores.


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: