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.
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:
This is one way to find out.
A short way to give us relevant report in a moment done about quantities on disk usage, memory and swap in our Linux Systems.
Just type 2 characters and enter, you will be back.
knows more extension and checks MIME types also, if file extension not matched
I think it would be wise if anyone voting down left a comment indicating the reason for that action. Don't keep it to yourself. Thanks.
Normally, if you just want to see directories you'd use brianmuckian's command 'ls -d *\', but I ran into problems trying to use that command in my script because there are often multiple directories per line. If you need to script something with directories and want to guarantee that there is only one entry per line, this is the fastest way i know
To save all rules so that they are not lost in case of a server reboot:
read system logs of sun solaris 9
This is really not cli but I think it's neat.
Somehow, i prefer forcing to rm interactively to accidently rm'ing everything...
This opens up nautilus in the current directory, which is useful for some quick file management that isn't efficiently done from a terminal.
sometimes if directories are too deep, chmod -R fails... in those cases, a find comes in most handy :)
Quick and dirty way to disable the Ubuntu notifications that can be quite annoying. It prevent the notify-osd to start so you need to logout Gnome or kill it by hand to take effect.
Go to /
Kills the pid you want to kill
unalias a previously aliased command
This should work on any RPM-based distribution. It's more reliable than trying to parse the content of the files.
Simply displays your current working directory. Helps when you are buried deep in /etc or some other obscure place.
gunzip all .gz file in current dir
Generate the iso from the disk, easily.
same as "dd if=/dev/cdrom of=~/mydisk.iso"