forked from iahmad-khan/LPIC1-LABS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quiz6
169 lines (96 loc) · 3.54 KB
/
quiz6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
1) The ‘setuid’ command will allow a file to run with the same permissions as the files owner rather than the permissions of the user accessing the file.
Correct
Correct answer
True
2) A hard link (ln) makes a copy of the original file. Any changes made to the copy will have to be duplicated manually in the original.
Correct
Correct answer
False
3) The following command – ‘tar zxvf linux.tar.gz’ – performs which of the following actions?
Incorrect
Correct answer
Use gzip to uncompress, extract the contents, display verbose messages of the file ‘linux.tar.gz’
4) If you want to find out how Linux will treat a specific file (whether binary application, man page, etc), you would use the following command:
Correct
Correct answer
type
5) Filenames in Linux are not case sensitive.
Correct
Correct answer
False
6) In the commands ‘cp’, ‘rm’ and ‘mv’, the ‘-r’ command line parameter has what function?
Correct
Correct answer
recursive
7) To create the path ‘/home/username/secret/file/location’, none of which exists, in one statement, which command would you use?
Correct
Correct answer
mkdir –p /home/username/secret/file/location
8) The ‘umask’ command can be changed either with octal notation or symbolic notation.
Correct
Correct answer
True
9) Issuing the command ‘newgrp’ if the group already exists, will change the users current group ID and then change the default group ownership of what?
Correct
Correct answer
Subsequently created files or directories.
10) The link command (ln) is equivalent to Windows:
Correct
Correct answer
Shortcut Files
11) Which of the following lists of filenames will the following statement return – ‘ls fun*.??t’
Correct
Correct answer
functional.txt, funky.dst, funandgames.btt
12) A soft link (ln –s) refers to the original file without making a copy of the original.
Correct
Correct answer
True
13) By default, the Linux copy command (cp) will NOT copy subdirectories and their files.
Correct
Correct answer
True
14) Issuing the command ‘newgrp’ will create the new group if it does not exist and then change the default group ownership of subsequently created files or directories.
Incorrect
Correct answer
False
15) The ‘find’ command uses the system file index database created with the ‘updatedb’ command.
Correct
Correct answer
False
16) In order to remove the empty directory and all subdirectories created above, which command line switch needs to be added to the ‘rmdir’ command?
Incorrect
Correct answer
–p
17) The /tmp directory is immutable.
Correct
Correct answer
False
18) In order to find if a specific man page exists on the system in the default system paths, you would use the following command:
Correct
Correct answer
whereis
19) The ‘chgroup’ command will change the default group your user belongs to.
Correct
Correct answer
False
20) The most common location for a system level binary application, script or utility is:
Correct
Correct answer
/sbin
21) The following command performs what action? dd if=/dev/sdf of=/backup/root.img
Correct
Correct answer
Copies the contents of /dev/sdf to the file /backup/root.img
22) The directory containing references to hardware connected to the Linux system is:
Correct
Correct answer
/dev
23) The command "dd if=/dev/zero of=/dev/xvdj bs=1M" will zero out a hard drive, erasing its content and filling it with zeros.
Correct
Correct answer
True
24) The remove command (rm) will remove all files and directories in the path indicated.
Correct
Correct answer
False