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/
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.
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
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:
!whatever will search your command history and execute the first command that matches 'whatever'. If you don't feel safe doing this put :p on the end to print without executing. Recommended when running as superuser.
This will launch a listener on the machine that will wait for a connection on port 1234. When you connect from a remote machine with something like :
nc 192.168.0.1 1234
You will have console access to the machine through bash.
My netcat (nc-1.84-10.fc6) doesn't have the -e option, so I have to do it like this. Of course, instead of bash, you can use any executable, including scripts.
This will completely erase everything on your hard drive and is not reversible.
This is a simple BASH script which with gather basic system hardware such as CPU sockets and cores, Memory modules and sizes as well as overall memory and more.
Root access may be needed to pull information from 'dmidecode'
this is the most scary command that exists. read the hdparm man page. and see this post: http://dazzle.cs.mcgill.ca/wordpress/?p=36
WARNING!! This command can produce to crash the unix system where you execute it. What this command do is to generate a lot of threads (so in practice -> process) until the system is overloaded, and to recover it, it is needed a reboot of the machine.
I believe it is interesting to study how this command works, however It is important to notice that executing this, the system is going to crash, so PLEASE save all the work you have opened before. Maybe it can also corrupt the system...
This is a fork bomb.
More info: http://en.wikipedia.org/wiki/Fork_bomb
exponentially spawns subprocesses until your box locks up.
DO NOT USE IF YOU DON'T WANT TO REBOOT!
Better don't run this command. Only funny on machines you'd like to kill.
This article introduces a step-by-step guide to create a password for SQL server. It also tells you how to easily remove SQL Server password with SQL password remover if you forget your SQL Server password.
Want to remove RAR password to gain access to the files? Follow the sep-by-step guidance in the article and try to recover RAR password with 3 different attack options: brute-force attack, brute force with mask and dictionary attack.
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!!!
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
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.
This article will relate to self-study with three kinds of PDF software: PDF Editor, PDF converter and PDF password recovery software. Afterwards, you will never worry about handling PDF files.
online file recovery,data recovery helps and tips