Linux+ Chapter 04

24 July 2022
4.7 (114 reviews)
40 test answers

Unlock all answers in this set

Unlock answers (36)
question
T/F - The rmdir command automatically removes a directory and all of its subdirectories and files.
answer
False
question
T/F - You can use wildcard metacharacters with the find command.
answer
True
question
The SGID allows regular users to execute a binary compiled program and become a member of the group that is attached to the file.
answer
True
question
Shell scripts do not require the execute permission in order to be run the same way binary programs are run.
answer
False
question
The database for the locate command can be updated manually by using the updatedb command.
answer
True
question
The File system Hierarchy Standard specifies what directory as containing the Linux kernel and the boot loader configuration files?
answer
/boot
question
The File system Hierarchy Standard specifies what directory as the root user's home directory?
answer
/home
question
What command can be used to copy files?
answer
cp
question
What command takes a list of arguments specifying the absolute or relative pathnames of files to remove?
answer
rm
question
What command utilizes a premade database that contains a list of all the files on a system:
answer
locate command
question
The contents of a certain variable in memory can be viewed using which metacharacter in combination with the echo command?
answer
$
question
What section of a filesystem contains information about the filesystem in general?
answer
superblock
question
In order to create a hard link, what command must be used?
answer
ln
question
The section of an inode that stores permissions is referred to as what?
answer
mode
question
In a file's mode, a permission that is unavailable is represented by what character?
answer
-
question
What permission grants a user the ability to open, read, and edit the contents of a file?
answer
write
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
When using the chmod command, the mode rwx can be represented by which number?
answer
7
question
In order to set all of the special permissions on a certain file or directory, which command should be used on a file named filename?
answer
chmod 7777 filename
question
What does the setfacl -b command do?
answer
removes all extra ACL assignments
question
In order to quickly create an empty file, what command can be used?
answer
touch command
question
What permission (when applied to a directory) allows a user to enter the directory and work with directory contents?
answer
excecute
question
What permission (when assigned to a file) grants a user the ability to open, read, and edit the contents of a file?
answer
write
question
What mode corresponds to setting r-x:
answer
user
question
What option, when added to the rm command, is commonly referred to as the -resume option?
answer
-r
question
__________defines a standard set of directories for use by all Linux and UNIX systems, as well as the file and subdirectory contents of each directory.
answer
FHS
question
To copy a directory full of files in Linux, you must tell the cp command that the copy will be _____(involve files and subdirectories too) by using the -r option
answer
recursive
question
The _____ command only searches directories that are listed in a special variable called the PATH variable in the current BASH shell.
answer
which
question
To create a(n) _____ link, you use the -s option to the ln command.
answer
symbolic
question
When a user creates a file or directory, that user's name and ______ becomes the owner and group owner of the file, respectively.
answer
primary group
question
rwx
answer
7
question
rw-
answer
6
question
what are the three numbers representing rwx?
answer
421
question
r-x
answer
5
question
rw- rw- rw-
answer
666
question
r--
answer
4
question
rw-r-xrwx
answer
657
question
A special variable used to alter permissions by taking away select defaults?
answer
unmask command
question
added to a ch or ls command for attributes?
answer
attr
question
-wx-w-r-x
answer
325