Week 4 Comprehension Flashcards
What does the following command do?
setfacl -m u:user1:rwx file1
- Assign user1 a faculty role on file1
- Assign user1 to become the sole owner of file1
- Allow user1 to become an additional owner of file1
- Allow user1 to become an additional group member of file1
- Allow user1 to become an additional owner of file1
What can user1 do to “file1”? (Select two)
-rw-r—x. 1 user1 user1 5494 Oct 2 12:57 file1
- Open and read the content of the file
- Open, read, and edit the content of the file
- Execute the file
- Nothing
- Open and read the content of the file
- Open, read, and edit the content of the file
Which one is NOT a part of the file system structure?
- Superblock
- Cylinder
- Data block
- Inode table
- Cylinder
Which command should you use to rename a file?
- cp
- mv
- rn
- rename
- mv
Which command is used to find the location of a file? (Select three)
- find
- locate
- which
- where
- find
- locate
- which
Find the match.
/etc
/var
/dev
/usr/bin
Linux commands used by all users
log files and spool
configuration files
device files
/etc = configuration files
/var = log files and spool
/dev = device files
/usr/bin = Linux commands used by all users
What can you say about the file below given you belong to “other”. (Select three)
-rwsr-xr-x. 1 root root 50152 Jul 16 2018 /usr/bin/mount
- If will allow you to become the root user during its execution
- It will allow you to edit the file
- It has the execution bit set
- It is an executable file
- If will allow you to become the root user during its execution
- It has the execution bit set
- It is an executable file
Which command is used to find the directories under user1’s home directory?
- find ~user1 -name directories
- find directories ~user1
- find -type d ~user1
- find ~user1 -type d
- find ~user1 -type d
Directories have inodes, but they do not have their own data blocks.
- True
- False
- False
rmdir deletes the specified directory only if the directory is empty.
- True
- False
-True