Lab07.Filesystem Management
Lab07.Filesystem Management
Filesystem Management
Filesystem Basics
dir1
hard
a b c d
link dir2 dir3 dir4
Partition
Partition
super … …
block
LINK
Different identity for the same file
Advantages
• make data available in multiple places without duplication
• give multiple names to the same command
• owner
• owner
ownership permissions • group
• group
(two tiered) (three tiered) • others
- r w x r – x r - x
file type code owner permissions others (world) permissions
r read 4
w write 2 Symlinks always have 777
x execute 1 permissions.
Attributes:
a - append only
i - immutable
s - secure deletion
t - no tail merge
A - no access time updates
j - journal (not on ext2)
Disk Quotas
in the filesystem
edquota <user>
edquota -t set grace period
quotacheck on a filesystem basis
Locating Files
shareable unshareable
static /usr /etc
/opt /boot
/home /var/run
variable /var/mail /var/lock