Sunday, 15 May 2011

Learn three linux command a day

aah, here's a nice trick that'll randomly gives you three command for you to explore.

Trick make use of  linux `shuf' and `ls' command.


sahilsk@dragonaider:~$ ls /usr/bin/  | shuf -n 3
pgmnoise
evolution-settings
infokey
Let make it more interesting.
How about showing commands that start wth letter 'a' first or any other regex.
For that just pipe `ls` command output to `grep` command.
sahilsk@dragonaider:~$ ls /usr/bin/ | grep "^a" |shuf -n 3
arch
alsamixer
allec

Isn't it great?
btw, alsamixer is your linux sound driver utility. In case you unable to listen music or any sound from your computer , just change the setting with this command.
$alsamixer

No comments:

Post a Comment