Professional Documents
Culture Documents
Linux+ Unit 05
Linux+ Unit 05
Unit objectives
Explain the function of the Filesystem
Course ILT
Hierarchy Standard
Find files and directories and link files
Modify file and directory ownership
Identify the default permissions and
apply special file and directory
permissions
Topic A
Topic A: The Filesystem Hierarchy
Standard
Course ILT
– Source file/directory
– Target file/directory
continued
Managing files and directories, continued
cp command
– Command used to create copies of files
Course ILT
and directories
continued
Managing files and directories, continued
rm command
– Takes a list of arguments specifying the
Course ILT
continued
Managing files and directories, continued
rmdir command
– Command used to empty directories
Course ILT
Course ILT Activity A-3
which command
– Used to locate files within directories
Course ILT
– The superblock
– The inode table
– Data blocks
Files can be linked two ways
– Symbolic link or symlink, one file a
pointer or a shortcut to another file
– Hard link, two files share the same data
Course ILT Structure of hard linked files
In command
ln (link) command
– Command used to create hard and
Course ILT
symbolic links
To create hard link use the ln
command with two arguments:
– The existing file to hard-link
– The target file that will be created as a
hard link to the existing file
Course ILT Structure of symbolically linked files
Course ILT Activity B-2
Mode
– The section of the inode that stores
Course ILT
permissions
– Divided into three sections based on the
user(s) that receive(s) the permission to
that file or directory
User (owner) permissions
Group (group owner) permissions
Other (everyone on the Linux system)
permissions
Regular permissions
There are three regular permissions
that you might assign to a user
Course ILT
– Read
– Write
– Execute
Course ILT The structure of a mode
Course ILT Interpreting permissions
chmod command
Used to change the mode
(permissions) of a file or directory
Course ILT
continued
Defining special permissions, continued