Questions and Answers
What is stored with the inode, not the name?
Attributes
What command can be used to see the inode numbers paired with each name?
ls -i
What is the purpose of the link count in a hard link?
Counts the number of names
What is a soft link also known as?
Signup and view all the answers
What is the link count of an empty directory?
Signup and view all the answers
What can the super-user account root do on a Unix system?
Signup and view all the answers
Why are soft links considered second-class citizens?
Signup and view all the answers
What happens when you try to access a dangling symlink?
Signup and view all the answers
What is the purpose of the -inum expression operator in the find command?
Signup and view all the answers
What is the difference between a hard link and a symbolic link?
Signup and view all the answers
What is the primary function of the /etc/passwd file?
Signup and view all the answers
What is the purpose of the usermod command?
Signup and view all the answers
How many owners can a file system inode have?
Signup and view all the answers
What determines the permissions of a process?
Signup and view all the answers
What is the purpose of the groups command?
Signup and view all the answers
What type of permission is required to execute a file?
Signup and view all the answers
What happens when you change the permissions of a symbolic link?
Signup and view all the answers
What is the purpose of the chmod command?
Signup and view all the answers
What type of link is a directory entry that points to an inode?
Signup and view all the answers
What is the relationship between a directory and its inode?
Signup and view all the answers
What is the term 'file' often referred to in Unix/Linux?
Signup and view all the answers
What can be read as if it were a regular file, with sufficient permissions?
Signup and view all the answers
What do directories map?
Signup and view all the answers
What is a characteristic of inodes?
Signup and view all the answers
What is stored in inodes?
Signup and view all the answers
What is the relationship between a directory and its inode?
Signup and view all the answers
What is the purpose of the ROOT directory inode?
Signup and view all the answers
What is the result of having multiple names for one inode?
Signup and view all the answers
What is the relationship between an inode and a file system object?
Signup and view all the answers
What do the file system diagrams show?
Signup and view all the answers
Which operation is not a directory operation?
Signup and view all the answers
What is the purpose of a link count in a hard link?
Signup and view all the answers
What happens when you try to access a symbolic link that points to a non-existent file?
Signup and view all the answers
What is the relationship between a directory and its inode?
Signup and view all the answers
What is the primary advantage of having multiple names for one inode?
Signup and view all the answers
What is the term for a directory entry that points to an inode?
Signup and view all the answers
What is the primary function of the /etc/group file?
Signup and view all the answers
What is the purpose of the usermod and groupmod commands?
Signup and view all the answers
What is the relationship between a directory and its inode?
Signup and view all the answers
What is the purpose of the id command?
Signup and view all the answers
How many group IDs can a process have?
Signup and view all the answers
What is the purpose of the whoami command?
Signup and view all the answers
What is stored in the inode?
Signup and view all the answers
What is the result of having multiple names for one inode?
Signup and view all the answers
What is a directory in Unix/Linux?
Signup and view all the answers
What is the purpose of inodes in a file system?
Signup and view all the answers
What is the result of having multiple names for one inode?
Signup and view all the answers
What is stored in an inode?
Signup and view all the answers
What is the root directory inode?
Signup and view all the answers
What do file system diagrams show?
Signup and view all the answers
Study Notes
Directories and Inodes
- Every directory except the ROOT directory has a name, which is stored in a directory inode above it.
- Directories hold only names and inode numbers, not attributes.
- Attributes are stored with the inode, not the name.
Inodes
- An inode stores attribute information of a file system object.
- To find out attribute information, you must use the inode number to find the inode and look at the item's attributes.
- Inodes contain pointers to disk blocks.
- Inodes contain attributes (owners, permissions, times, etc.).
- Inodes are unique inside a file system.
- Inodes are a fixed resource.
Hard Links
- Multiple names can point to the same inode (hard links).
- The link count counts the number of names pointing to an inode.
- Creating a hard link (ln) increases the link count, while removing a name (rm) decreases the link count.
- An empty directory has a link count of two.
Soft Links (Symbolic Links)
- Soft links are created using the ln command with the -s option.
- Soft links can be dangling, meaning the target does not exist.
- Soft links are second-class citizens.
- Relative and absolute targets can be used for soft links.
File Systems and Permissions
- Unix/Linux is a multi-user system, with the super-user account (root) having access to everything.
- File systems contain names of directories and files.
- Files are a list of bytes.
- Even hardware devices have file names.
- Inodes contain information on file system objects.
- Permissions are used to control access to file system objects.
Users, Groups, and Processes
- The password file (/etc/passwd) maps a user ID number to a name.
- The group file (/etc/group) maps each group ID number to a name.
- User IDs and group IDs are used to calculate permissions.
- Processes run with a user ID and multiple group IDs.
Permissions and Inodes
- Inodes have one owner (user ID) and one group.
- Permissions are used to match the login user ID and groups to inode owner and group.
- Symbolic mode and numeric mode can be used to set permissions.
- Permissions can be set for the owner, group, and others.
- Execute/Search permissions are used for directories.
Directories and Inodes
- Every directory except the ROOT directory has a name, which is stored in a directory inode above it.
- Directories hold only names and inode numbers, not attributes.
- Attributes are stored with the inode, not the name.
Inodes
- An inode stores attribute information of a file system object.
- To find out attribute information, you must use the inode number to find the inode and look at the item's attributes.
- Inodes contain pointers to disk blocks.
- Inodes contain attributes (owners, permissions, times, etc.).
- Inodes are unique inside a file system.
- Inodes are a fixed resource.
Hard Links
- Multiple names can point to the same inode (hard links).
- The link count counts the number of names pointing to an inode.
- Creating a hard link (ln) increases the link count, while removing a name (rm) decreases the link count.
- An empty directory has a link count of two.
Soft Links (Symbolic Links)
- Soft links are created using the ln command with the -s option.
- Soft links can be dangling, meaning the target does not exist.
- Soft links are second-class citizens.
- Relative and absolute targets can be used for soft links.
File Systems and Permissions
- Unix/Linux is a multi-user system, with the super-user account (root) having access to everything.
- File systems contain names of directories and files.
- Files are a list of bytes.
- Even hardware devices have file names.
- Inodes contain information on file system objects.
- Permissions are used to control access to file system objects.
Users, Groups, and Processes
- The password file (/etc/passwd) maps a user ID number to a name.
- The group file (/etc/group) maps each group ID number to a name.
- User IDs and group IDs are used to calculate permissions.
- Processes run with a user ID and multiple group IDs.
Permissions and Inodes
- Inodes have one owner (user ID) and one group.
- Permissions are used to match the login user ID and groups to inode owner and group.
- Symbolic mode and numeric mode can be used to set permissions.
- Permissions can be set for the owner, group, and others.
- Execute/Search permissions are used for directories.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.