Lesson 05 - File System Organization
Lesson 05 - File System Organization
File system is the method of organizing and managing your data in files and directories.
• The behavior of systems and applications is controlled by the configuration file settings.
• The files that contain these settings are known as configuration files.
• Every application or service has the configuration followed by its name.
Configuration Files in Linux (Ubuntu)
Example:
In the given screenshot, you can see the
network card configuration as required by
the network service application.
In Linux, there are primarily two types of resources, files and directories, and there
are three stakeholders present. They are user, group, and others.
• x stands for execute, and it allows you to execute -rwxr--r-- 1 root root θ Dec 2 9 2 3 : 4 9 file
the program present in the file or directory.
Other (r - -)
Permissions can also be set by octal method. Here, numerical values are used instead of symbols.
r = 4, w = 2, and x = 1
Permissions for Files and Directories
Users can be added to the system by two methods: GUI and CLI
• Like addition, deletion of users can also be done using GUI and CLI methods.
• The command # userdel <username> or # userdel -r <username> is used to remove or delete users
from the system.
o -r refers to the home directory.
• Therefore, even the home directory is deleted along with the user details.
User Administration
• Groups are used when the ownership is required for more than one person.
• Like user addition, groups can be added either by the GUI or CLI method.
• There are two types of groups:
o Primary group
o Secondary group
User Administration
Primary group:
• When a user is created by default, then the user is grouped under the primary group.
• The name of this primary group follows the name of the user.
• The command # groupadd <group_name> is used to add a group.
Secondary group:
• If a user wants to join an already present group, then the user is grouped under the secondary group.
• The command # useradd -g <group_name> <username> is used to add a user to a secondary group.
User Administration
Like addition, deletion of groups can be done either by the GUI or CLI method.
A. ext4
B. FAT32
C. NTFS
D. POSIX
Knowledge
Check
Which is the most used filesystem in the Linux distributions?
2
A. ext4
B. FAT32
C. NTFS
D. POSIX
ext4 is the most used file system in Linux distributions. Others are used by non-Linux OS.
Knowledge
Check
Which directory saves the current kernel parameters?
3
A. sbin
B. bin
C. var
D. proc
Knowledge
Check
Which directory saves the current kernel parameters?
3
A. sbin
B. bin
C. var
D. proc
A. sbin
B. bin
C. var
D. proc
Knowledge
Check
Which directory stores the user commands?
4
A. sbin
B. bin
C. var
D. proc