Archive for January, 2008

Show USB devices

Linux command to show all USB Devices


lsusb -tv

Create a Sound File from a Text

You can create a wav file of a written text using this command


echo "It's such a beautiful day! Why are you in front of the computer?" | festival --tts
echo "It's such a beautiful day! Why are you in front of the computer?" | text2wave -scale 50 -o beautiful_day.wav

Create a Directory Tree in One Command

You can create a directory tree using just one command in Linux


mkdir -p /tmp/dir1/dir2

Executing Jar Files

Execute a Java jar file


java -jar [file_name.jar]

Using Dvorak in Linux Console

If you are a user of the dvorak layout, this command will let you use that layout in the console…


loadkeys dvorak

Using Range in Commands

Show files and directory containing numbers


ls *[0-9]*

Install Java JRE in Linux and Use it as a Firefox Plugin

Download the installer from http://www.java.com/en/download/manual.jsp


cd /usr/local/
mkdir java
cd java
sh /home/user/location_of_jre_installer/jre-6u3-linux-i586.bin
cd /usr/local/firefox/plugin/	[The folder where firefox is installed]
ln -s /usr/local/java/jre1.6.0_03/plugin/i386/ns7/libjavaplugin_oji.so

Linux Shutdown Commands

Three commands that could be used to shutdown a linux system.


shutdown -h now
init 0
telinit 0

arch Command

Show architecture of machine


$ arch
i686

Original Article

Fish Alias/Function Location

The alias/function of the fish shell are stored at ‘/home/username/.config/fish/functions’