Module 4 Live Virtual Machine Labs 1-8 Flashcards

1
Q

lab 4-1

Which of the following command is used to delete a file?

A

rm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

To create a subdirectory within a directory, which of the following command should be used?

A

mkdir myfolder/mydocs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following parameter should be used with the rm command to remove a directory?

A

-r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following special characters are used as wildcards? [Choose all that apply.]

A

*
?
[ ]
~

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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?

A

-r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

lab 4-2

Which type of link is a pointer to the source file?

A

Symbolic link

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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?

A

Hard link

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which type of link can only exist on the local system?

A

Hard link

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which command is used to create links?

A

ln

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which parameter is used to create a symbolic link rather than a hard link with the ln command?

A

-s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

lab 4-3

Which of the following directories are contained within the root directory? [Choose all that apply.]

A

boot
etc
home

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which of the following is a separate partition that moves items from computer memory to its hard drive?

A

swap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which of the following two directories contain files that are static and cannot be changed by a user? [Choose two.]

A

/etc
/boot

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which of the following directories are unshareable? [Choose all that apply.]

A

/var/log
/proc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which command works only when you are in the root directory?

A

find

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

lab 4-4

Which command displays values like when last accessed, modified, or changed for a specific file?

17
Q

What is the octal value of execute permission

18
Q

What is the octal value of execute permission

19
Q

What is the standard permission for directories?

20
Q

What is the standard permission for files?

21
Q

lab 4-5

In which of the following ways can an access control list be configured? [Choose all that apply.]

A

Per-user basis

Per group basis

Using an effective right mask

For users other than the ones in the group for a file

22
Q

Which package should you use to verify if the ACL package is installed on the CentOS system?

23
Q

Which package should you use to verify if the ACL package is installed on the CentOS system?

24
Q

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?

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