(Backup) ITEC3116-SNAL-Lecture 08 - File System Hierarchy
(Backup) ITEC3116-SNAL-Lecture 08 - File System Hierarchy
4
FHS
5
The Hierarchical Structure of
the Linux File System
The Role of the Linux File
System
- The data is organized and can be easily
located .
- The data can be easily retrieved at any
later point in time .
-The integrity of the data is preserved .
The “/”
8
The “/”
boot bin dev etc lib proc root sbin tmp usr var
9
Notice that the topmost directory in the
structure is the / directory, that is called
the root directory.
Beneath the root directory, there are a
series of subdirectories.
Specifications for how these directories
are to be named contained in the
Filesystem Hierarchy Standard (FHS).
/boot
Linux kernel
Boot loader configuration
If you lost boot
You cannot boot your OS
11
/boot
boot
grub.conf
12
/bin
Contains several useful commands that are
of use to both the system administrator as
well as non-privileged users.
Usually contains the shells like bash, csh,
etc.... and commonly used commands like
cp, mv, rm, ls.
There are no (real) subdirectories in /bin
13
bin
bin
14
1. /bin …(cont)
cat hostname rm
chgrp kill rmdir
chmod ln sed
chown login sh
ls stty
cp
mkdir
date su
mknod
dd more sync
df mount true
dmesg mv umount
echo ps uname
false pwd
15
/bin detail
16
/bin detail (cont)
17
/bin detail (cont)
18
/dev
19
/dev … detail
20
Sub Directories……