Outcome 3 Flashcards
(86 cards)
What are inodes?
Inodes are structures that reference where the data in data blocks live and are referenced by their inode number in an inode table.
What does the command ‘ln’ do by default?
‘ln’ creates a hard link by default.
What is a hard link?
A hard link is a label or name assigned to a file that refers to the same contents as the original file.
True or False: Hard links can refer to files located on different computers linked by NFS.
False
What happens when you delete a hard link?
The file contents will still exist as long as there is one name referencing the file.
What is a symbolic link?
A symbolic link, or soft link, is a special kind of file that points to another file.
How do you create a symbolic link?
You create a symbolic link using the command ‘ln -s’.
What happens to symbolic links when the target file is deleted?
The symbolic links become unusable.
Fill in the blank: Symbolic links are created using the ______ command.
ln -s
What is the purpose of the ‘chmod’ command?
‘chmod’ is used to change the permissions of a file or directory.
What do the permission bits ‘r’, ‘w’, and ‘x’ stand for?
r - read, w - write, x - execute
What does ‘chmod 777’ do?
It gives full permissions (read, write, execute) to the user, group, and others.
How is octal notation used in changing file permissions?
Each permission (read, write, execute) is assigned a number: r=4, w=2, x=1, and the total is used to establish permission.
What is the default permission for an ordinary file?
644 (-rw-r–r–)
What does the first ‘-‘ indicate in a permission string?
It indicates that the file is an ordinary file.
What does the command ‘chmod a-rwx file3’ result in?
It results in no permissions for all: ———-
What is the difference between changing permissions using octal notation and symbolic mode?
Octal notation uses numbers to set permissions, while symbolic mode uses letters and signs (+, -) to add or remove permissions.
Fill in the blank: The command ‘chmod g-w,o-w file3’ results in permissions: ______.
-rwx r-x r-x
What command is used to list files with detailed information?
‘ls -l’
What does the letter ‘l’ indicate in file permissions?
It indicates a symbolic link.
What does ‘chmod 000 file2’ do?
It removes all permissions for the file.
What command is used to check the contents of a file?
‘cat’
True or False: Hard links can refer to directories.
False
What command is used to give executable permissions to the group for both files?
chmod g+x [file1] [file2]
Replace [file1] and [file2] with the actual file names.