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). Show Sample Output
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
Paste image:
curl -F 'clbin=@filename.jpg' https://clbin.com
tune ping's -c and parallel's -j for your needs Show Sample Output
Removes files and dirs lilsted by the tar tf command. Errors may occur because of dirs deleted before children.
This is a joke for @putnamhill and @glaudiston I'm pretty sure we can write longer if we want ;)
This is not recommended... lossy -> lossy = lossier. Still, you can do it! ;)
Crash Override, man! Apparently the exec call tricks BASH into setting the output buffer size to 0 under the assumption that the system (or the calling shell) will handle the output buffering. trapping the ERR signal will stop the subshell from dying and sending the ERR signal to the main script--which will terminate immediately if it does--when the program fails. The only problem is that the kernel will output a whole bunch of stack trace garbage directly to the console device once the process segfaults, so there's no way to prevent it from being output [that I know of].
When a large maven release goes wrong, by deploying just some of the artifacts letting others behind, some projects got wrong SNAPSHOT versions. This command comes to help! Tip: replace sed's regex by your version numbers
But if you use a screen saver, you must first disable your screen saver kill $(ps ax | grep screensaver | grep -v grep | awk '{ print $1 }')
Convert Metasploit?s MSCACHE output to Hashcat version (performed in ~/.msf4/loot/):
instead of printing the whole line, print just the capture matched, but with the "cut" pipe :( I'm so sad with grep. Show Sample Output
update the output of rsync after completing a file but don't create newlines, just overwrite the last line, this looks a lot better in scripts where you do want to see a progress-indicator, but not the lengthy logs this option is available since rsync 3.1.0 Show Sample Output
Use pgrep's flexibility to search for processes, with pretty formatting via ps. All parameters are passed to pgrep. Show Sample Output
commandlinefu.com is the place to record those command-line gems that you return to again and again. 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.
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: