Linux Chapter 4 – Flashcards
Unlock all answers in this set
Unlock answersquestion
In order to create a hard link, what command must be used?
answer
ln
question
What command can be used to copy files?
answer
cp
question
What permission grants a user the ability to open, read, and edit the contents of a file?
answer
write
question
What section of a filesystem contains information about the filesystem in general?
answer
superblock
question
The Filesystem Hierarchy Standard specifies what directory as containing the Linux kernel and the boot loader configuration files?
answer
/boot
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 filenam
question
When using the chmod command, the mode rwx can be represented by which number?
answer
7
question
The contents of a certain variable in memory can be viewed using which metacharacter below in combination with the echo command?
answer
$
question
?Select the mode below that corresponds to setting r-x:
answer
5
question
What command below takes a list of arguments specifying the absolute or relative pathnames of files to remove?
answer
rm
question
The section of an inode that stores permissions is referred to as what?
answer
the mode of the file
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
In a file's mode, a permission that is unavailable is represented by what character?
answer
-
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
What option, when added to the rm command, is commonly referred to as the -resume option?
answer
-r
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
The Filesystem Hierarchy Standard specifies what directory as the root user's home directory?
answer
/root
question
The ____________________ command only searches directories that are listed in a special variable called the PATH variable in the current BASH shell.
answer
which command
question
Select the command below that utilizes a premade database that contains a list of all the files on a system:
answer
locate
question
To create a(n) ____________________ link, you use the -s option to the ln command.
answer
symbolic
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