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

Monitoring file handles used by a particular process
-r : repeat mode

Matrix Style
It's the same command as submitted, but first with a command to make all characters green. It's the only way it looked "matrix-like" on my gnome-terminal.

List all files modified by a command
This lists all files modified after calling some command using a temporal anchor.

Find files of two different extensions and copy them to a directory

Convert CSV to JSON
Replace 'csv_file.csv' with your filename.

Create a continuous digital clock in Linux terminal
Source: http://www.my-guides.net/en/guides/linux/364-how-to-create-a-continuous-digital-clock-in-linux-terminal

Stoppable sleep
A nice way to interrupt a sleep with a signal.

Determine what an process is actually doing

Remove newlines from output
?Cat and grep? You can use only grep ("grep \. filename"). Better option is awk.

Nicely display permissions in octal format with filename
Nicely display permissions in octal format and filename for a given directory


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: