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

Disable system bell in an X session
Execute this command in a terminal to disable the system-bell during X-session lifetime.

remove ^M characters from file using sed
removing ^M characters from file with sed

shutdown pc in 4 hours without needing to keep terminal open / user logged in.
This way, you can specify how many hours in which you want your machine to shut down.

Find usb device in realtime
Using this command you can track a moment when usb device was attached.

My Git Tree Command!
this creates a tree of your branch merges. very useful if you want to follow the features you add.

Quickly CD Out Of Directories
`up 3` will climb the directory tree by three steps. `up asdf` will do nothing, and returns exit code 1 as an error should.

Hits per hour apache log

Detect illegal access to kernel space, potentially useful for Meltdown detection
Based on capsule8 agent examples, not rigorously tested

Extract all of the files on an RPM on a non-RPM *nix

Show a listing of open mailbox files (or whatever you want to modify it to show)


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: