Recommended directory in Linux for Installing / Copying Apps Games or LAMP – Linux File system Explained

Newbie’s to Linux often face the dilemma of where to install or put the binaries of any software app they wish to run on their Linux. If that app comes with a installer it’s ok but if not then It’s tough time , well here I would recommend some important points to consider  while choosing the directories for installation of your Apps etc.

 

If you are using some package manager like Synaptic (Ubuntu) , YUm or apt-get then the locations are automatically chosen for you and are in most case /bin or /usr/bin for the executables .

If you are installing LAMP then install it to /opt or /etc directory and while you can keep the WEB ROOT at /var/www or in some other Linux’s at /srv/www

As I told you, Apps tend to be installed in /usr/bin, /usr/local/bin, or in some cases /opt. If you’re developing your own software or modifying an existing package /usr/local/bin is probably better as it signifies a user edited binary file

To Learn more about significance and usage of filesystem hierarchy of Linux , Download this PDF from pathname.com , or read it  Online ( HTML) version here

Pictorial representation of Linux FileSystem

Here are two images, I found on the internet which explain the various Directories under Linux file system in brief within a small single page image.

(Click on image to Expand it )

linux_file_structure

Here is another one much colorful and Web2

 file-system-hierarchy

Hope this helped you understand to some extent , meaning and importance of various directories under Linux root filesystem.

(Image credit goes to the creator, If you are the one just notify me in comments and I will update it here in Post )


This entry was posted on Sunday, November 1st, 2009 and is filed under Linux, Tutorials. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

See What others were Looking For !!

recommended linux games (4),recommended linux apps (2),best linux file system for games (1),linux installing vs copying (1),pictorial representation of linux (1),pictorial representation of webapps directory in linux (1),recommended directories linux or unix (1),recommended directory for linux applications (1),recommended linux directory (1),recommended linux games# (1),recommened file system for linux (1),Linux fs recommanded (1),linux filesystem hierarchy in hindi (1),best linux file system for gaming (1),best linux filesystem for gaming (1),copying apps (1),directory www lamp /opt (1),etc directory in linux missing (1),google recommended directories (1),installing lamp to different directory (1)