Chapter 4 quiz
What two commands below can be used to locate files on a filesystem?
locate, find
What argument can be used with the chmod command to add read permission and remove write permission for a group on a file?
g+r-w
In order to create a hard link, what command must be used?
ln
The contents of a certain variable in memory can be viewed using which metacharacter below in combination with the echo command?
$
In a file's mode, a permission that is unavailable is represented by what character?
-
What option, when added to the rm command, is commonly referred to as the -resume option?
-r
The Filesystem Hierarchy Standard specifies what directory as containing the Linux kernel and the boot loader configuration files?
/boot
Select the mode below that corresponds to setting r-x:
5
When using the chmod command, the mode rwx can be represented by which number?
7
What does the setfacl -b command do?
It removes all extra ACL assignments on a given file
What command can be used to copy files?
cp
What permission (when applied to a directory) allows a user to enter the directory and work with directory contents?
execute
The rmdir command automatically removes a directory and all of its subdirectories and files.
false
If a file's permissions are set to 760, what permission(s) are available to the group assigned to the file?
read, write
What command below takes a list of arguments specifying the absolute or relative pathnames of files to remove?
rm
In order to quickly create an empty file, what command can be used?
touch file1
You can use wildcard metacharacters with the find command.
true
The database for the locate command can be updated manually by using the updatedb command.
true
What permission grants a user the ability to open, read, and edit the contents of a file?
write
What permission (when assigned to a file) grants a user the ability to open, read, and edit the contents of a file?
write