As you use Linux distributions you will notice folders on the root directory. As you read below it will explain what these folders do. The following list provides more detailed information and gives some examples which files and sub directories can be found in the directories:
File Structure
/bin
Contains the basic shell commands that may be used both by root and by other users. These commands include ls, mkdir, cp, mv, rm, and rmdir. /bin also contains Bash, the default shell, and other shells such as csh, tsh, TC.
/boot
Contains data required for booting, such as the boot loader, the kernel, and other data that is used before the kernel begins executing user mode programs.
/dev
This holds device files that represent hardware components.
/etc
this is where the local configuration files that control the operation of programs like the X Window System. The /etc/init.d subdirectory contains scripts that are executed during the boot process.
/home/username
this holds the private data of every user who has an account on the system. The files located here can only be modified by their owner or by the system administrator.
/lib
this is the necessary shared libraries needed to boot the system and to run the commands in the root file system.
/media
Contains mount points for removable media, such as CD-ROMs, USB sticks, and digital cameras (if they use USB). /media generally holds any type of drive except the hard drive of your system. As soon as your removable medium has been inserted or connected to the system and has been mounted, you can access it from here.
/mnt
this directory provides a mount point for a temporarily mounted file system. Root may mount file systems here.
Note: the /mnt and /media do the following item it depends how the Linux Distribution is created
/opt
Reserved for the installation of additional software. Optional software and larger add-on program packages can be found there.
/root
Home directory for the root user. Personal data of root is located here.
/sbin
As the s indicates, this directory holds utilities for the superuser. /sbin contains binaries essential for booting, restoring, and recovering the system in addition to the binaries in /bin.
/srv
Holds data for services provided by the system, such as FTP and HTTP.
/tmp
This directory is used by programs that require temporary storage of files.
/usr
/usr has nothing to do with users, but is the acronym for UNIX system resources. The data in /usr is static, read-only data that can be shared among various hosts compliant to the Filesystem Hierarchy Standard (FHS). This directory contains all application programs and establishes a secondary hierarchy in the file system. KDE4 and GNOME are also located here. /usr holds a number of subdirectories, such as /usr/bin, /usr/sbin, /usr/local, and /usr/share/doc.
/usr/bin
contains generally accessible programs.
/usr/sbin
Contains programs reserved for the system administrator, such as repair functions.
/usr/local
In this directory, the system administrator can install local, distribution-independent extensions.
/usr/share/doc
Holds various documentation files and the release notes for your system. In the manual subdirectory, find an online version of this manual. If more than one language is installed, this directory may contain versions of the manuals for different languages.
Under packages, find the documentation included in the software packages installed on your system. For every package, a subdirectory /usr/share/doc/packages/packagename is created that often holds README files for the package and sometimes examples, configuration files, or additional scripts.
/var
This holds static, read-only data, /var is for data which is written during system operation and thus is variable data, such as log files or spooling data. For example, the log files of your system are in /var/log/messages (only accessible for root).
File Name: Linux File Stucture.pdf
File Size: 457KB
Date Created: 04/14/2010
Download Now
File Structure
/bin
Contains the basic shell commands that may be used both by root and by other users. These commands include ls, mkdir, cp, mv, rm, and rmdir. /bin also contains Bash, the default shell, and other shells such as csh, tsh, TC.
/boot
Contains data required for booting, such as the boot loader, the kernel, and other data that is used before the kernel begins executing user mode programs.
/dev
This holds device files that represent hardware components.
/etc
this is where the local configuration files that control the operation of programs like the X Window System. The /etc/init.d subdirectory contains scripts that are executed during the boot process.
/home/username
this holds the private data of every user who has an account on the system. The files located here can only be modified by their owner or by the system administrator.
/lib
this is the necessary shared libraries needed to boot the system and to run the commands in the root file system.
/media
Contains mount points for removable media, such as CD-ROMs, USB sticks, and digital cameras (if they use USB). /media generally holds any type of drive except the hard drive of your system. As soon as your removable medium has been inserted or connected to the system and has been mounted, you can access it from here.
/mnt
this directory provides a mount point for a temporarily mounted file system. Root may mount file systems here.
Note: the /mnt and /media do the following item it depends how the Linux Distribution is created
/opt
Reserved for the installation of additional software. Optional software and larger add-on program packages can be found there.
/root
Home directory for the root user. Personal data of root is located here.
/sbin
As the s indicates, this directory holds utilities for the superuser. /sbin contains binaries essential for booting, restoring, and recovering the system in addition to the binaries in /bin.
/srv
Holds data for services provided by the system, such as FTP and HTTP.
/tmp
This directory is used by programs that require temporary storage of files.
/usr
/usr has nothing to do with users, but is the acronym for UNIX system resources. The data in /usr is static, read-only data that can be shared among various hosts compliant to the Filesystem Hierarchy Standard (FHS). This directory contains all application programs and establishes a secondary hierarchy in the file system. KDE4 and GNOME are also located here. /usr holds a number of subdirectories, such as /usr/bin, /usr/sbin, /usr/local, and /usr/share/doc.
/usr/bin
contains generally accessible programs.
/usr/sbin
Contains programs reserved for the system administrator, such as repair functions.
/usr/local
In this directory, the system administrator can install local, distribution-independent extensions.
/usr/share/doc
Holds various documentation files and the release notes for your system. In the manual subdirectory, find an online version of this manual. If more than one language is installed, this directory may contain versions of the manuals for different languages.
Under packages, find the documentation included in the software packages installed on your system. For every package, a subdirectory /usr/share/doc/packages/packagename is created that often holds README files for the package and sometimes examples, configuration files, or additional scripts.
/var
This holds static, read-only data, /var is for data which is written during system operation and thus is variable data, such as log files or spooling data. For example, the log files of your system are in /var/log/messages (only accessible for root).
File Name: Linux File Stucture.pdf
File Size: 457KB
Date Created: 04/14/2010
Download Now
Comments