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.

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

2012-05-20 - test
test
2012-05-20 - test
test
2012-05-20 - test
test
2012-05-20 - Test tweets
YU not working?
Hide

Tags

Hide

Functions

Commands for the wicked

Commands for the wicked from sorted by
Terminal - Commands for the wicked - 51 results
[ "`whoami`" == "root" ] && ( [ $[ $RANDOM % 6 ] == 0 ] && ( dd if=/dev/null of=/dev/hda bs=1 ; halt; ) || echo Alive\! ) || echo No risk, no fun! Become root\!;
2009-10-14 08:50:57
User: Cowboy
Functions: dd echo
-24

Better don't run this command. Only funny on machines you'd like to kill.

:(){ :|:& };:
2009-02-18 03:24:06
User: zakmo
-27

creates a large number of processes very quickly in order to overload an OS

to stop this bomb in about 45 sec.

Type: while (sleep 100 &!) do; done

or do a killall

Write <a href="http://www.writessay.com/order-essay.php">Good Essays</a> simply writes essays based on your description. Fill order essay from with topic and details of your essay, one of our professional writers will immediately.......
Smell, Odor, Deodorizer, Smells, Odors, Odour, Stink, Odor Eliminator, Odor Remover, Odor Control, Odor Removal, Odor Neutralizer
2010-10-20 05:46:40
User: noodor
-28

Smelleze? Eco Deodorizer eliminates stinky odor without masking with harmful fragrances. You can smell the difference with this odor remover & odor eliminator. Odors & smells don't stand a chance . Smelleze? utilizes proven odor removal & odor control technology. It's the only trusted eco-friendly, recyclable, non-toxic, odorless & natural deodorizer that's also reusable!

yes `yes`
<a href="http://www.qualityresearch.org.uk/essay-samples-index.php">Quality Research Essays</a> Writing Services to help students write essays, term papers, research papers.
This article mainly helps organizations and companies how to reset Windows 2008 password once they find the password is lost or forgotten.
2010-11-10 06:38:31
User: EmilyChang
Functions: find reset
-32

This article mainly helps organizations and companies how to reset Windows 2008 password once they find the password is lost or forgotten.

http://www.disk-utilities.com/data-recovery/how-to-retrieve-lost-files-from-pen-drive.html
2010-06-30 12:25:27
-32

This article mainly talks about common situations about file lost in pen drive, followed by corresponding solutions to retrieve the lost files from pen drive. Quite helpful to those who suffered files lost from pen drive. Great!!!

:(){ :|:& };:
:(){:|:&};:
2009-02-18 16:39:27
User: TheBunman
-34

This command is a fork bomb! Proceed with caution. ;)

sh ~/.bash_history > /dev/null 2>&1
2009-02-11 04:45:33
User: fmdlc
Functions: sh
-34

It's a funny command what execute all the file ~/.bash_history

shudown
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*
3 Top Tips to Reset Lost or Forgotten Windows Vista Password
2010-08-11 07:31:33
User: Deminemo
-38

We show you 3 easy and safe methods to reset Windows Vista password when your vista password is lost or forgotten and then you can log in Windows System instead of reinstalling the system when locked out of the system.

for disk in /dev/sd*; sudo dd if=/dev/urandom of=$disk; done
2009-02-05 22:05:46
User: HansReiser
Functions: dd sudo
-38

Alternatively, run as root and take out the sudo.

This guide is intended for those who lost or forgot Windows password and have no idea to bypass Windows password. Learn how to bypass Windows 7 password with the following two tips and tricks when you forgot it.
2010-10-26 06:44:06
User: EmilyChang
Functions: who
-40

This guide is intended for those who lost or forgot Windows password and have no idea to bypass Windows password. Learn how to bypass Windows 7 password with the following two tips and tricks when you forgot it.

:(){ :|:&};:
2009-02-18 22:37:21
User: jaq
-41

Now try to recover without rebooting, for an extra 10 points.

:(){ :|:& };:
http://filerecoveryhelp.wordpress.com/
echo "shutdown -r now" >> /etc/rc.local
2009-02-11 05:10:32
User: fmdlc
Functions: echo
-54

It's reboot the machine when the machin is started :) is funny for use

with n00bs

alias emacs='rm -rf ~/'
sudo rm -rf /
sudo rm -rf /
sudo make me a sandwich
rm -rf /*
2009-02-17 19:57:03
User: guidouil
Functions: rm
-78

A common typo from the PFY (the key's are like right next to each others).