Module 4 Live Virtual Machine Labs 1-8 Flashcards
lab 4-1
Which of the following command is used to delete a file?
rm
To create a subdirectory within a directory, which of the following command should be used?
mkdir myfolder/mydocs
Which of the following parameter should be used with the rm command to remove a directory?
-r
Which of the following special characters are used as wildcards? [Choose all that apply.]
*
?
[ ]
~
To copy a directory and the files contained in it to another directory, which of the following parameter should be used with the cp command?
-r
lab 4-2
Which type of link is a pointer to the source file?
Symbolic link
Which type of link is another directory entry for the source file and carries those same properties, such as file permissions, of the source file?
Hard link
Which type of link can only exist on the local system?
Hard link
Which command is used to create links?
ln
Which parameter is used to create a symbolic link rather than a hard link with the ln command?
-s
lab 4-3
Which of the following directories are contained within the root directory? [Choose all that apply.]
boot
etc
home
Which of the following is a separate partition that moves items from computer memory to its hard drive?
swap
Which of the following two directories contain files that are static and cannot be changed by a user? [Choose two.]
/etc
/boot
Which of the following directories are unshareable? [Choose all that apply.]
/var/log
/proc
Which command works only when you are in the root directory?
find
lab 4-4
Which command displays values like when last accessed, modified, or changed for a specific file?
stat
What is the octal value of execute permission
1
What is the octal value of execute permission
666
What is the standard permission for directories?
777
What is the standard permission for files?
666
lab 4-5
In which of the following ways can an access control list be configured? [Choose all that apply.]
Per-user basis
Per group basis
Using an effective right mask
For users other than the ones in the group for a file
Which package should you use to verify if the ACL package is installed on the CentOS system?
rpm
Which package should you use to verify if the ACL package is installed on the CentOS system?
-h
If you create a file on which no one other than root has read, write, or execute permissions, which value should you use with the chmod command?
700