Linux test 2 (4,5,6) Flashcards
(122 cards)
To move files, you can use the mv command.
T
The rmdir command automatically removes a directory and all of its subdirectories and files.
F
You can use wildcard metacharacters with the find command
T
When using the chmod command, if there is no character specifying the category of user to affect, only the group category is affected.
F
The SGID allows regular users to execute a binary compiled program and become a member of the group that is attached to the file.
T
To create a subdirectory, you would use the makedir command
F
When working with files, the special metacharacter “..” specifies the current directory.
F
When using the find command, the -size x criteria is used to search for files with a size greater than x.
F
The PATH variable lists directories that are searched for executable files if a relative or absolute pathname was not specified when executing a command on the command line.
T
The execute permission for a file allows a user the ability to execute the file in memory (if it is a program file or a script).
T
In the FHS, the ____ directory contains the Linux kernel and files used by the boot loader.
/boot
In the FHS, the ____ directory is the root user’s home directory.
/root
In the FHS, the ____ directory contains most system commands and utilities.
/usr
Copying a file can be accomplished using the ____ command.
cp
The ____ command takes a list of arguments specifying the absolute or relative pathnames of files to remove.
rm
The fastest method to search for files in the Linux directory tree is to use the ____ command
locate
You can see the contents of a certain variable in memory by using the ____ metacharacter with the echo command.
$
The ____ section of a filesystem is the section that contains information about the filesystem in general.
superblock
To create a hard link, you must use the ____ command
ln
The chgrp command takes ____ argument(s) at minimum.
2
The section of an inode that stores permissions is called the ____ of the file.
mode
In a file’s mode, if a permission is unavailable, a(n) ____ character replaces its position in the mode
-
If a user has ____ permission for a file, they can open, read, and edit the contents of a file.
write
When using the chmod command for a specific file, the ____ argument would add read permission and remove write permission for the group permissions.
g+r-w