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

Check hashes of files installed by Debian packages, reporting only errors.

Gets the english pronunciation of a phrase
Usage: say hello world how are you today

formatting number with comma
it is not work with Cygwin's bash3.X. Test in Linux. use printf "%'f" number while it is floating point number

Print only the odd lines of a file
NR%2 == 1 on odd lines and 0 on even lines

Find files with lines that do not match a pattern
This one would be much faster, as it's only one executed command.

worse alternative to
worse alternative to ctrl+r: grep the history removing duplicates without sorting (case insensitive search).

increase recursively the modification time for a list of files
Increase the modification date for the files selected with the find command.

Display GCC Predefined Macros

print crontab entries for all the users that actually have a crontab
This is how I list the crontab for all the users on a given system that actually have a crontab. You could wrap it with a function block and place it in your .profile or .bashrc for quick access. There's prolly a simpler way to do this. Discuss.

find directory with most inodes/files
Find which directory in one filesystem that contains most inodes or files.


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: