The world is my backyard.
Random header image... Refresh for more!

What goes where? Filesystem hierarchy in Unix/Linux/OS X

Unix Filesystem Hierarchy

Although it is one of the first chapters one read when starting with Linux/Unix, it is always confusing where should we put what when it comes to installing stuff on Linux/OS X computers.

I found a detailed reference Filesystem Hierarchy standard website.

It is also worth knowing, why is it important to store any new customized apps in /usr/local.

July 19, 2008   1 Comment

Installing command line MP3 player

Mpg 123 Player

mpg123 is a real time MPEG 1.0/2.0/2.5 audio player for layers 1,2 and 3.

I was playing with Ruby scripts and needed a command line mp3 player which was not a resource hog.

Steps I took for my OS X (Should work on Linux/Unix box):

Download the latest version from the website.

Untar the archive

tar -xvf mpg123-1.4.3.tar

Compile and install the player

./configure --prefix=/usr/local/mpg123
make
make install

Add the path to .bash_profile

echo 'export PATH=/usr/local/mpg123/bin:$PATH' >> ~/.bash_profile

Load the new path

source ~/.bash_profile

Enjoy playing music from command-line!

 mpg123 ~/Music/Bagho_Bagh_Gippy_Grewal.mp3

June 28, 2008   2 Comments