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
When using the chmod command, the mode rwx can be represented by the number ____.
1) 0
2) 1
3) 7
4) 8
3) 7
To set all of the special permissions on a certain file or directory, you can use the command ____, where name is the name of the file or directory.
1) chmod 777 name
2) chmod 7777 name
3) chmod 6666 name
4) chmod 0000 name
2) chmod 7777 name
Can the mv command be used to rename files?
1) Yes
2) No
1) Yes
Does the find command use a pre-made index of files to locate a file?
1) Yes
2) No
2) No
Do symbolic links share the same inode and inode number?
1) Yes
2) No
2) No
Should most files residing in a user’s home directory be owned by that user?
1) Yes
2) No
1) Yes
Are permissions additive?
1) Yes
2) No
2) No
___________________________________ 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.
FHS
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
recursive
The ____________________ command only searches directories that are listed in a special variable called the PATH variable in the current BASH shell.
which
To create a(n) ____________________ link, you use the -s option to the ln command.
symbolic
When a user creates a file or directory, that user’s name and ____________________ becomes the owner and group owner of the file, respectively.
primary group
Command used to quickly create an empty file.
touch
Command used to change the ownership of a file or directory.
chown
Command used to test network connectivity.
ping
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
umask
Command used to change the permissions for a certain file or directory.
chmod
Command used to view your group memberships and primary group.
groups
Command used to view your current user name.
whoami
Command used to change the group owner of a file or directory.
chgrp
Command used to displays BASH shell aliases.
alias
A computer connected to a remote hard disk via iSCSI is referred to as an iSCSI initiator.
1) True
2) False
1) True
When you use disk imaging software to write a Linux ISO image onto a USB flash drive, the filesystem existing on the flash drive is maintained.
1) True
2) False
2) False
To perform a Linux installation over a network, you can connect to a server with the appropriate installation files via FTP.
1) True
2) False
1) True