If you've upgraded to OS X 10.10.x the OS installer should be on your system, otherwise its a free download (~ 5 GB). Added bonus, the above command does not require the USB pre-formatted. Show Sample Output
Due to @tremby, here: http://unix.stackexchange.com/a/172088/58343. I'm looking for a way to parallelize openssl and feed that to dd since openssl is the bottleneck on my machine: http://unix.stackexchange.com/questions/253466/parallelize-openssl-as-input-to-dd
Combs through your home directory and destroys all Vagrant boxes.
replace @ symbol with new line character, to get new line character press Ctrl+v+enter --> ^M
Only need to install Image Magick package.
Display a xkcd comic with its title and save it in /tmp directory
If you prefer to view the newest xkcd, use this command:
wget -q http://xkcd.com/ -O-| sed -n '/<img src="http:\/\/imgs.xkcd.com\/comics/{s/.*\(http:.*\)" t.*/\1/;p}' | awk '{system ("wget -q " $1 " -O- | display -title $(basename " $1") -write /tmp/$(basename " $1")");}'
A way not so simple but functional for print the command for the process that's listening a specific port.
I got the pid from lsof because I think it's more portable but can be used netstat
netstat -tlnp
Show Sample Output
The Washington DC Metro area is not accustomed to getting large snow storms... http://snowpocalypsedc.com/
This will list your phone's filesystem with bitpim. (works on many LG, Samsung, and Sanyo) See http://www.bitpim.org/help/phones-featuressupported.htm for full list.
((60 * 4)) will be turned into 240 by bash before being input to the shutdown command, replace the 4 with whatever number of hours you want, let bash do the math.
That command make the same that "ls -a", but just typping "la". Tested in bash.
More stealthy ffmpeg method. The imagemagick 'import' method causes a system beep.
If a call get hanged , one can disconnect the call using the above command i.e "soft hangup . The Zap/1-1 is the name of the Channel , you wish to disconnect. There may be many channels, but you need to pick the channel name of hanged call only ...
%qdbus org.freedesktop.PowerManagement /org/kde/Solid/PowerManagement suspendToRam Service 'org.freedesktop.PowerManagement' does not exist.
Starts a new shell (in bash/sh, it starts bash/sh). 'man bash' explains: "If arguments remain after option processing, and neither the -c nor the -s option has been supplied, the first argument is assumed to be the name of a file containing shell commands. If bash is invoked in this fashion, $0 is set to the name of the file, and the positional parameters are set to the remaining arguments."
If the HISTTIMEFORMAT is set, the time stamp information associated with each history entry is written to the history file, marked with the history comment character. Show Sample Output
Be careful, first run: lsof | grep -i deleted | grep REG | grep -v txt Then, give it the boot!
This will take the local machines date and set it on the remote machine. This really only works right if you have already swapped an ssh key. 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: