use it to stagger cronjob or to get a random number increase the range by replacing 100 with your own max value Show Sample Output
-k, --keep-open will keep connection alive, and we could exclude using 'while true' nc is such a powerful command, it could be used instead of any OS! :p Show Sample Output
Muestra el crecimiento de un archivo por segundo. Cambia el texto "FILE" por el nombre del archivo a monitorear. Comando STAT
use '*' instead of 'ls'
Broken in two parts, first get the number of cores with cat /proc/cpuinfo |grep proc|wc -l and create a integer sequence with that number (xargs seq), then have GNU parallel loop that many times over the given command. Cheers! Show Sample Output
as a shell script, the possibilities are endless... #!/bin/bash echo doing something very evil! exit [2Aecho doing something very nice! Show Sample Output
This is quite usefull in Unix system share via NFS or AppleTalk with OSX clients that like to populate your filesystem with these pesky files
Seems obvious, but other seemingly simple ways to use it don't work:
echo !whammy
and
echo "!whammy"
both output:
-bash: !whammy: event not found
and this:
echo "\!whammy"
outputs:
\!whammy
with the slash :(
you can also do any combinations of quotes for a complex string:
echo "It's great to be able to use a bang ("'!'") in a command"'!'
outputs:
It's great to be able to use a bang (!) in a command!
Show Sample Output
But who knows to delete the rest of the lines? I want only "string".
Also works with files:
cat file
Hello world
base64 file
SGVsbG8gd29ybGQK
To decrypt use the -d option:
echo SGVsbG8gd29ybGQK | base64 -d
Hello world
Show Sample Output
Found this one little more for me. This one removes the perl dependency (from command 2535). Source for command : http://www.earthinfo.org/linux-disk-usage-sorted-by-size-and-human-readable/ Show Sample Output
Gets the internal and external IP addresses of all your interfaces, or the ones given as arguments Show Sample Output
If you receives a lot of compiling errors, type 'clear', then reedit your code and press "SHIFT+PGUP". Show Sample Output
bash neto..
combines mkdir and cd added quotes around $_, thanx to flatcap! 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: