forked from iahmad-khan/LPIC1-LABS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quiz5
64 lines (36 loc) · 1.04 KB
/
quiz5
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
1) The Which and Whereis commands operate identically when searching for files.
Correct
Correct answer
False
2) The command '[$] cat results.txt | wc -l' will display what output?
Correct
Correct answer
The number of lines in the file 'results.txt'.
3) The command "echo 'test' > test.txt" will overwrite the 'test.txt' file if it exist already.
Correct
Correct answer
True
4) The "time" command is used to display the current system time.
Correct
Correct answer
False
5) The "head" command shows only the meta tag portion of HTML files.
Correct
Correct answer
False
6) The "./program" command would be used to run a program named "program" in the current directory.
Correct
Correct answer
True
7) System wide environment variables (for every user) would be set in which file?
Correct
Correct answer
/etc/profile
8) Executing the command [$] command >>& result.txt
Incorrect
Correct answer
Answer not listed
9) A specific user can set environment variables for their user in which file?
Correct
Correct answer
Both .bashrc and .bash_profile