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.
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:
Wow, didn't really expect you to read this far down. The latest iteration of the site is in open beta. It's a gentle open beta-- not in prime-time just yet. It's being hosted over at UpGuard (link) and you are more than welcome to give it a shot. Couple things:
unsets variables used by the one-liner
sets up the IFS bash variable to not be affected by whitespace and disables extra glob expansion
uses read to slurp the results of the find command into an array
selects an element of the array at random to be passed as an argument to mplayer
Opens or closes the cdrom device.
This obey that you don't match any broadcast or network addresses and stay between 22.214.171.124 - 254.254.254.254
just change 6 to 9 or 12 or more (multiple of 3) to have bigger password
if you can use this depends on which netapp you have, this netapp is an FAS2020
Delete range of lines. Ex: Line 6 through 66 in .
This will make a backup of all hidden files and folders in the home folder.
At times you will need to safeguard your files. Use OpenSSL's native rc4 encryption to do so.
'nopad' removes padding and 'nosalt' removes random salt being added to the file.
In order to unrar several files in different subfolders, you just need to launch this command in your parent folder in order to have your files ready for manipulation and already extracted;
I did not put anything to delete the original rar files
Use graphicsmagick or imagemagick to composite a RGBA image over a flat white background and discard the alpha channel.
You can use that to create a excludefile for nmap, to find hosts, with no DHCP lease in your DHCP range.
Compare the disk space for the new and old drive
enter our information on the content file.
with a semicolon text file map, apply multiple replace to a single file
">>" appends to the file
">" replaces the entire file
make sure to use ">>"
Create compressed, encrypted backup from $source to $targetfile with password $key and exclude-file $excludefile
Easiest way to obtain the busiest website list (sorted by number of process running).
Provides a SOCKS5 proxy on localhost port 8080 which will tunnel all connections through srv1 and run in the background.
This is a joke for @putnamhill and @glaudiston
I'm pretty sure we can write longer if we want ;)