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?

A

stat

17
Q

What is the octal value of execute permission

A

1

18
Q

What is the octal value of execute permission

A

666

19
Q

What is the standard permission for directories?

A

777

20
Q

What is the standard permission for files?

A

666

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?

A

rpm

23
Q

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

A

-h

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?

A

700

25
Q

You can verify the permissions on this file using the ________ command. [Choose all that apply.]

A

getfacl
ls -l

26
Q

lab 4-6

What is the default value of SUID?

A

4

27
Q

What is the default value of SGID?

A

2

28
Q

Which command would you use to view the assigned SGID?

A

ls -ld

29
Q

To remove the write permissions for a group, which two parameters should you use with the chmod command?

A

g-w

30
Q

What is the octal value of SUID?

A

4000

31
Q

lab 4-7

To which of the following can you apply the default ACL?

A

Only to directories

32
Q

Which command do you use to define an access ACL?

A

setfacl

33
Q

Which parameter do you use with the setfacl command to define a default ACL?

A

-d

34
Q

Which command do you need to use to verify the ACLs on a directory after they have been applied?

A

getfacl

35
Q

lab 4-8

Which of the following group is used for a regular file?

A

-

36
Q

Which command will add the read, write, and execute permissions to Everyone on a file named plab.txt?

A

chmod ugo+rwx plab.txt

37
Q

What is the octal value of read permission?

A

4

38
Q

Which commands can be used to change the group in a file permission? [Choose all that apply.]

A

chown
chgrp

39
Q

What is the octal value of execute permission?

A

1