Quiz 4

24 July 2022
4.7 (114 reviews)
24 test answers

Unlock all answers in this set

Unlock answers (20)
question
In order to quickly create an empty file, what command can be used?​
answer
vim file1
question
What argument can be used with the chmod command to add read permission and remove write permission for a group on a file?
answer
g+r-w
question
What section of a filesystem contains information about the filesystem in general?
answer
superblock
question
The section of an inode that stores permissions is referred to as what?
answer
the mode of the file
question
​What two commands below will grant only the execute permission to username bob on file1, assuming that bob is the file's owner?
answer
chmod 777 file1, chmod u=x​ file1
question
What does the setfacl -b command do?​
answer
​It removes all extra ACL assignments on a given file
question
In order to set all of the special permissions on a certain file or directory, which command below should be used on a file named filename?
answer
chmod 7777 filename
question
What permission grants a user the ability to open, read, and edit the contents of a file?
answer
write
question
​Select the mode below that corresponds to setting r-x: - 2 - 5 - 1 - 6
answer
5
question
The contents of a certain variable in memory can be viewed using which metacharacter below in combination with the echo command? - $ - & - # - *
answer
$
question
What command can be used to copy files? - copy - cp - cpy - mv
answer
cp
question
What two commands can be used to locate files on a filesystem? - locate - grep - read - find
answer
locate, find
question
What permission (when applied to a directory) allows a user to enter the directory and work with directory contents?​ - write - sticky bit - execute - read
answer
execute
question
The Filesystem Hierarchy Standard specifies what directory as the root user's home directory? - /root - /bin - /home/root - /boot
answer
/root
question
Select the command below that utilizes a premade database that contains a list of all the files on a system: - locate - search - find - id
answer
locate
question
What option, when added to the rm command, is commonly referred to as the -resume option? - r - d - f - i
answer
-r
question
​What two commands below will work recursively if specified with the -R option? (Select 2 answers.) - cp - rm - mkdir - mv
answer
cp, rm
question
​What two special permissions can be applied in order to effectively allow a user to become owner of a file, or become a member of a group, by executing a file? - SGID - SUID - SQUID - sticky bit
answer
SGID, SUID
question
If a file's permissions are set to 760, what permission(s) are available to the group assigned to the file?​ - read - write - execute - move
answer
read, write
question
When using the chmod command, the mode rwx can be represented by which number? - 0 - 1 - 7 - 8
answer
7
question
In a file's mode, a permission that is unavailable is represented by what character? - ? - * - "b -" - +
answer
b -
question
​What permission (when assigned to a file) grants a user the ability to open, read, and edit the contents of a file? - read - write - sticky bit - execute
answer
write
question
In order to create a hard link, what command must be used? - ln - link - lk - lnk
answer
ln
question
What command below takes a list of arguments specifying the absolute or relative pathnames of files to remove? - rm - del - delete - remove
answer
rm