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

A fun thing to do with ram is actually open it up and take a peek. This command will show you all the string (plain text) values in ram
cat? dd? RTFM

List the biggest accessible files/dirs in current directory, sorted

Generate hash( of some types) from string
No need to install yet another program when openssl is already installed. :-)

Create a video screencast of any x11 window, with audio
The script gets the dimensions and position of a window and calls ffmpeg to record audio and video of that window. It saves it to a file named output.mkv

Reverse ssh
Both hosts must be running ssh and also the outside host must have a port forwarded to port 22.

Print entire field if string is detected in column
It searches for a specific value in the specified column and if it finds it it'll print the whole field/row. Similarly, if you don't know what you're looking for exactly but want to exclude something you're already aware of, you can exclude that "something: awk '{ if ($column != "string") print $0}'

Change wallpaper for xfce4 >= 4.6.0
Simply changes the wallpaper of xfce4 from the command line. Not for multiple displays.

Advanced python tracing
Trace python statement execution and syscalls invoked during that simultaneously

Define a quick calculator function
defines a handy function for quick calculations from cli. once defined: $ ? 10*2+3

List of commands you use most often


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: