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.

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:



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!

Top Tags





Commands tagged speed from sorted by
Terminal - Commands tagged speed - 11 results
aria2c --max-download-limit=100K file.metalink
2013-03-26 16:05:52
User: totti

Throttle download speed

aria2c --max-download-limit=100K file.metalink

Throttle upload speed

aria2c --max-upload-limit=100K file.torrent
axel --max-speed=x
2013-03-26 16:00:43
User: totti
Tags: download speed


--max-speed=x, -s x

You can specify a speed (bytes per second) here and Axel will

try to keep the average speed around this speed. Useful if you

don?t want the program to suck up all of your bandwidth.

ctrl-x ctrl-x
telnet 0 <port>
2012-11-16 03:38:49
User: somaddict
Functions: telnet

Super fast way to ftp/telnet/netcat/ssh/ping your loopback address for testing. The default route is simply reduced to 0.

watch -n 1 pkill -USR1 "^dd$"
2012-08-31 05:15:45
Functions: watch
Tags: dd progress speed

Sends the "USR1" signal every 1 second (-n 1) to a process called exactly "dd".

The signal in some systems can be INFO or SIGINFO ...

look at the signals list in: man kill

iperf -s
2011-01-24 07:58:38
User: forcefsck

On the machine acting like a server, run:

iperf -s

On the machine acting like a client, run:

iperf -c ip.add.re.ss

where ip.add.re.ss is the ip or hostname of the server.

nc -l -p 7777 > /dev/null
2011-01-24 00:06:45
User: kerim

On the another machine write this command.

pv -r /dev/zero | nc 7777

It will show live throughput between two machine.The destination machine ip is at our example

You must multiply by 8 for the network calculation.

You must install pv and netcat commands for this commands usage.



cat /dev/sda | pv -r > /dev/null
2011-01-23 22:58:56
User: kerim
Functions: cat

Change your drive letter as you wish.

Using pv command for speed detect.First of all you must install pv command for usage.



while :;do killall -USR1 dd;sleep 1;done
2010-04-07 09:23:31
User: oernii2
Functions: killall
Tags: dd progress speed

every 1sec sends DD the USR1 signal which causes DD to print its progress.

trickle -d 60 wget http://very.big/file
2010-03-29 06:55:30
Functions: wget

Trickle is a voluntary, cooperative bandwidth shaper. it works entirely in userland and is very easy to use.

The most simple application is to limit the bandwidth usage of programs.

echo $(date +%s) > start-time; URL=http://www.google.com; while true; do echo $(curl -L --w %{speed_download} -o/dev/null -s $URL) >> bps; sleep 10; done &
2009-09-19 21:26:06
User: matthewbauer
Functions: date echo sleep

This will log your internet download speed.

You can run

gnuplot -persist <(echo "plot 'bps' with lines")

to get a graph of it.