Linux File Architecture
Linux File Architecture
Administration
Topic : Linux Directories Structure
• Every single file and directory starts from the root directory
• The only root user has the right to write under this directory
• /root is the roaot user’s home directory, which is not the same as /
2. /bin : Essential command binaries that need to be available in single-user mode; for all users,
e.g., cat, ls, cp.
• These include terminal devices, usb, or any device attached to the system.
• Example: /dev/tty1, /dev/usbmon0
5. /etc : Host-specific system-wide configuration files.
6. /home : Users’ home directories, containing saved files, personal settings, etc.
• Home directories for all users to store their personal files.
• example: /home/kishlay, /home/kv
7. /lib : Libraries essential for the binaries in /bin/ and /sbin/.
/tmp : Temporary files. Often not preserved between system reboots, and may be severely
size restricted.
12. /srv : Site-specific data served by this system, such as data and scripts for web servers,
data offered by FTP servers, and repositories for version control systems.
• Contains binaries, libraries, documentation, and source-code for second level programs.
• /usr/bin contains binary files for user programs. If you can’t find a user binary under /bin, look under /usr/bin. For
example: at, awk, cc, less, scp
• /usr/sbin contains binary files for system administrators. If you can’t find a system binary under /sbin, look
under /usr/sbin. For example: atd, cron, sshd, useradd, userdel
• /usr/local contains users programs that you install from source. For example, when you install apache from source,
it goes under /usr/local/apache2
• This is a virtual filesystem with text information about system resources. For
example: /proc/uptime