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

Show IP Address in prompt --> PS1 var
when working with many machines in a computer lab need to know the IP addr is very large, this is a simplistic solution to make things easier

list block devices
Shows all block devices in a tree with descruptions of what they are.

Get Lorum Ipsum random text from lorumipsum.com
This will generate 3 paragraphs with random text. Change the 3 to any number.

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

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

Use tagged vlans
Great for sysadmins! Don't forget to pass the vlan to your port in a manageable switch. After vconfig, you should use $sudo ifconfig eth0.[VID] up Now the interface is up, you can use dhclient or ifconfig again to get an ip address.

wget progress bar with customized data size for dots

Get the Volume labels all bitlocker volumes had before being encrypted
Get information of volume labels of bitlocker volumes, even if they are encrypted and locked (no access to filesystem, no password provided). Note that the volume labels can have spaces, but only if you name then before encryption. Renaming a bitlocker partition after being encrypted does not have the same effect as doing it before.

Install pip with Proxy
Installs pip packages defining a proxy

Continue a current job in the background
Continue a current job in the background and detach it from current terminal


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: