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:
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 184.108.40.206 - 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.
Define alias for convenience:
alias clbin='curl -v -F "clbin=<-" https://clbin.com'
Paste man page:
man bash | clbin
curl -F 'email@example.com' https://clbin.com