Linux File Structure and File Funtions Unit 2
Linux File Structure and File Funtions Unit 2
The Linux File Hierarchy Structure or the Filesystem Hierarchy Standard (FHS) defines the directory
structure and directory contents in Unix-like operating systems.It is maintained by the Linux
Foundation.
1. / – Root
Every single file and directory starts from the root directory.
Only root user has write privilege under this directory.
Please note that /root is root user’s home directory, which is not same as /.
Common linux commands you need to use in single-user modes are located under this
directory.
Commands used by all the users of the system are located here.
For example: ps, ls, ping, grep, cp.
Contains library files that supports the binaries located under /bin and /sbin
Library filenames are either ld* or lib*.so.*
For example: ld-2.11.1.so, libncurses.so.5.7