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
You can verify the permissions on this file using the ________ command. [Choose all that apply.]
getfacl
ls -l
lab 4-6
What is the default value of SUID?
4
What is the default value of SGID?
2
Which command would you use to view the assigned SGID?
ls -ld
To remove the write permissions for a group, which two parameters should you use with the chmod command?
g-w
What is the octal value of SUID?
4000
lab 4-7
To which of the following can you apply the default ACL?
Only to directories
Which command do you use to define an access ACL?
setfacl
Which parameter do you use with the setfacl command to define a default ACL?
-d
Which command do you need to use to verify the ACLs on a directory after they have been applied?
getfacl
lab 4-8
Which of the following group is used for a regular file?
-
Which command will add the read, write, and execute permissions to Everyone on a file named plab.txt?
chmod ugo+rwx plab.txt
What is the octal value of read permission?
4
Which commands can be used to change the group in a file permission? [Choose all that apply.]
chown
chgrp
What is the octal value of execute permission?
1