Chapter 4, 5, 6 Flashcards
To move files, you can use the mv command.
1) True
2) False
1) True
The rmdir command automatically removes a directory and all of its subdirectories and files.
1) True
2) False
2) False
You can use wildcard metacharacters with the find command.
1) True
2) False
1) True
When using the chmod command, if there is no character specifying the category of user to affect, only the group category is affected.
1) True
2) False
2) False
The SGID allows regular users to execute a binary compiled program and become a member of the group that is attached to the file.
1) True
2) False
1) True
To create a subdirectory, you would use the makedir command.
1) True
2) False
2) False
When working with files, the special metacharacter “..” specifies the current directory.
1) True
2) False
2) False
When using the find command, the -size x criteria is used to search for files with a size greater than x.
1) True
2) False
2) False
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.
1) True
2) False
1) True
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).
1) True
2) False
1) True
In the FHS, the ____ directory contains the Linux kernel and files used by the boot loader.
1) /load
2) /bin
3) /boot
4) /mnt
3) /boot
In the FHS, the ____ directory is the root user’s home directory.
1) /bin
2) /home
3) /boot
4) /root
4) /root
In the FHS, the ____ directory contains most system commands and utilities.
1) /usr
2) /root
3) /bin
4) /home
1) /usr
Copying a file can be accomplished using the ____ command.
1) copy
2) mv
3) cp
4) cpy
3) cp
The ____ command takes a list of arguments specifying the absolute or relative pathnames of files to remove.
1) del
2) rm
3) remove
4) delete
2) rm
The fastest method to search for files in the Linux directory tree is to use the ____ command.
1) search
2) id
3) find
4) locate
4) locate
You can see the contents of a certain variable in memory by using the ____ metacharacter with the echo command.
1) $
2) *
3) &
4) #
1) $
The ____ section of a filesystem is the section that contains information about the filesystem in general.
1) inode table
2) inode
3) data blocks
4) superblock
4) superblock
To create a hard link, you must use the ____ command.
1) ln
2) link
3) lnk
4) lk
1) ln
The chgrp command takes ____ argument(s) at minimum.
1) one
2) two
3) three
4) four
2) two
The section of an inode that stores permissions is called the ____ of the file.
1) tail
2) head
3) mode
4) accessor
3) mode
In a file’s mode, if a permission is unavailable, a(n) ____ character replaces its position in the mode.
1) *
2) +
3) ?
4) -
4) -
If a user has ____ permission for a file, they can open, read, and edit the contents of a file.
1) write
2) execute
3) read
4) alter
1) write
When using the chmod command for a specific file, the ____ argument would add read permission and remove write permission for the group permissions.
1) u+r+w
2) g-r+w
3) g+r-w
4) o+r-w
3) g+r-w