This produces a parseable output of the last day of the month in future or past. Change the '-v-0m' to be a month plus or minus from the current system time. Show Sample Output
This is /bin/sh compatible.
manda la salida de un comando hacia un servicio de paste y coloca la url de ese paste en el portapapeles
Lists crontab for all users on system that have crontabs. Show Sample Output
This works on some other version of read.
Simplicity tends to win out on commandlinefu.com Also, why type multiple filenames when range operators work too. Saves finger abuse and time and reduces the chances for mistakes.
It clears caches from memory. It works fine on CentOS and Fedora. It will show you how much memory you need, for real.
Oneliner to get domain names list of all existing domain names (from wikipedia) Show Sample Output
apt-get must be run as root, and it is useless to run it as your own user. So just run it as root. Saves you the "sudo !!" every time you're adding a package.
#!/bin/sh _HOSTNAME=`hostname` _HOSTTYPE=`echo $HOSTTYPE` _MACHINETYPE=`echo $MACHTYPE` _OSTYPE=`echo $OSTYPE` _VENDOR=`echo $VENDOR` _KERNEL=`uname -r | awk -F- '{print $1}'` _GLIBC=`ls /lib/libc-*.so | awk -F- '/lib/ {print $2}' | awk -F. '{print $1"."$2}'` _MEM=`cat /proc/meminfo | awk '/MemTotal/ {print $2 $3}'` _CPU=`cat /proc/cpuinfo | grep 'cpu MHz' | awk '{print $4}'` echo '==============================' echo 'HOSTNAME ' $_HOSTNAME echo 'HOSTTYPE ' $_HOSTTYPE echo 'MACHINETYPE ' $_MACHINETYPE echo 'OSTYPE ' $_OSTYPE echo 'VENDOR ' $_VENDOR echo 'KERNEL ' $_KERNEL echo 'GLIBC ' $_GLIBC echo 'MEM INFO ' $_MEM echo 'CPU INFO ' $_CPU echo '==============================' Show Sample Output
if you had a symbolic link called "oldLink" in the current folder then you would want to do unlink oldLink
You can try it . Nice shell interface to search google from the command line.Visit http://goosh.org in your browser. Show Sample Output
One liner is based on this article: https://www.computerhope.com/issues/ch001307.htm Show Sample Output
I hate -exec with find, and this pattern quickly expands to other tasks.
sudo apt-get install moon-buggy An ascii 2D game where you control a mooncar and try to avoid moonhole by jumping (press space ) Show Sample Output
Allows you to change the value of an environment variable only for the execution of the command in the line. (corrected) Show Sample Output
prints a random line
This command is great for dumping your history so that when you're working on a system that is under a shared account, you can keep others from reviewing your history file. I use this when I'm just visiting a system to diagnose a problem, or to make a quick fix.
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: