Hide

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

Delete that bloated snippets file you've been using and share your personal repository with the world. 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.


If you have a new feature suggestion or find a bug, please get in touch via http://commandlinefu.uservoice.com/

Get involved!

You can sign-in using OpenID credentials, or register a traditional username and password.

First-time OpenID users will be automatically assigned a username which can be changed after signing in.

Universal configuration monitoring and system of record for IT.
Hide

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:

Hide

News

May 19, 2015 - A Look At The New Commandlinefu
I've put together a short writeup on what kind of newness you can expect from the next iteration of clfu. Check it out here.
March 2, 2015 - New Management
I'm Jon, I'll be maintaining and improving clfu. Thanks to David for building such a great resource!
Hide

Top Tags

Hide

Functions

Hide

Credits

Commands by kev from sorted by
Terminal - Commands by kev - 116 results
while pgrep wget || sudo shutdown -P now; do sleep 1m; done
cat urls.txt | wget -i- -T 10 -t 3 --waitretry 1
cat urls.txt | xargs -n1 curl -O --max-time 10 --retry 3 --retry-delay 1
cloc --force-lang=yaml --match-f='\.url$' .
ffmpeg -i input.ogv -vol $((256*4)) -vcodec copy output.ogv
curl -su username:passwd https://mail.google.com/mail/feed/atom | xmlstarlet sel -N x="http://purl.org/atom/ns#" -t -m //x:entry -v 'concat(position(), ":", x:title)' -n
curl -s http://people.mozilla.com/~faaborg/files/shiretoko/firefoxIcon/firefox-64.png | convert - jpg:- | jp2a --color --html -> firefox.html
fortune | toilet -w $(($(tput cols)-5)) -f pagga | cowsay -n -f beavis.zen
find ~/.mozilla -name '*.sqlite' -exec sqlite3 {} VACUUM \;
gvim --remote-send ":q!<CR>"
js -e 'JSON.stringify({hello:"world"})'
paste <(seq 7 | shuf | tr 1-7 A-G) <(seq 7 | shuf) | while read i j; do play -qn synth 1 pluck $i synth 1 pluck mix $2; done
sed G input.txt | cat -s
ip -f inet addr show eth0
alias man='man -S 2:3:1'
curl -s http://www.google.com | espeak -m -ven+11
dc -e '6k2vp'
python3 -c 'import sys; print(sys.stdin.read().swapcase(), end="")' <input.txt
sudo xvfb-run --server-args="-screen 0, 1024x768x24" ./webkit2png.py -o google.png http://www.google.com
find -L / -samefile path/to/foo.txt
git diff --color-words file1 file2
hi! link Comment Ignore
ls -l | gawk -v FIELDWIDTHS='1 3 3 3' '{print $2}'
{ echo -n '#!'; which bash; } > script.sh
echo 'graph{node[shape=record];rankdir=LR;matrix[label="{1|2|3}|{4|5|6}|{7|8|9}",color=red]}' | dot -Tpng | display