Member-only story
25 Awesome Linux Command One-Liners
Save time in your day-to-day work and have fun with it

I love working with the Linux shell. The shell lets you get things done in seconds, and no need to use any graphical environment.
In this post, I compile 25 command one-liners that I find especially useful or funny. I hope you like them!
1. Query Wikipedia via console
#dig +short txt <keyword>.wp.dg.cx
#For example:$dig +short txt usa.wp.dg.cx"a. English is the official language of at least 28 states\226\128\148some sources give higher figures, based on differing definitions of \"official\". English and Hawaiian are both official languages in the state of Hawaii. http://en.wikipedia.org/wiki/United_States"
2. Set a console clock into the right corner
Copy and paste the following sentence in a single line in your console:
$while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done &
Binary clock:
$watch -n 1 'echo "obase=2;`date +%s`" | bc'
3. Mount a temporary RAM partition
You can use it as a use and throw partition. However, the partition and all the data will be gone once you reboot the system.
For example, it can be used by programs or tasks that require many reading/writing operations to improve their performance.
$mount -t tmpfs tmpfs /mnt -o size=2048m
The above command will create a temporary partition size 2048MB in tmpfs and mount it under the /mnt directory.
4. List numerical values for each of the 256 colors in bash
$for code in {0..255}; do echo -e "\e[38;05;${code}m $code: Test"; done
5. Run the last command as root
$sudo !!
6. Kill process by name
$pkill -x chrome