Each user of a Linux system is assigned a special directory, called “home” direectory, that represents their private space on the system. For example, if a user of the system is called tom, the home directory of tom will be /home/tom. Tom has the right to create any files and directories under his home directory. This is also the default locationÂ when tom logs into the system.
This is the home directory of the adminstrator or super user.
In addition to personal hard disk space in the home directories, users are also given special access to shared temporary space in the /tmp directory. Linux systems often implement quotas on user accounts to prevent anyone from using too much disk space. The /tmp directory allows all users access to additional space to meet short term needs without charging the space against their quota. All files placed in this directory are deleted automatically after a few days.
This directory stores all the configuration files needed for the operating system. For example, startup configuration scripts are found in /etc/rc.dÂ and network configuration scripts are found in /etc/sysconfig. Normal users cannot modify the files in /etc.
/bin and /usr/bin
Most system commands are stored as binary files only in machine readable format. Commands appropriate for use by ordinary users are either placed in the /bin or /usr/bin directory. Core commands like rm, mv, ls, cd go into /bin while supplementary utilities like compilers, firefox browser and openoffice go into /usr/bin.
/sbin and /usr/sbin
Like /bin and /usr/bin, /sbin and /usr/sbin store commands to be used only by the super user, ie root user. These include commands for attaching andÂ removing hardware,Â startingÂ and stopping the system…etc.
This directory stores all the frequently changed files in the system. For example, incoming, outgoing mails, system logs, websites, ftp file archives…etc.
There are only a few directories to know to really startÂ using Linux. If youÂ understand what the main directories are, then exploring the sub-direectories becomes much easier. If you are lost while navigating the directories, always use “cd /” to return back the the root, “cd ..” to go up one level orÂ use “pwd” to find out where you are. Another command “which xxx” tells you where certain commands are located.Â