Quiz-summary
0 of 29 questions completed
Questions:
- 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
Information
Because of some problems with how to create an Test Online, we temporarily use the symbol (\) instead of the symbol (/) in some sentences. So you need to change the symbol (\)to the symbol (/) when you do it in practice. Thank you!
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 29 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
- 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
- Answered
- Review
-
Question 1 of 29
1. Question
1 pointsWhich of the following is a valid variable assignment?Correct
Incorrect
-
Question 2 of 29
2. Question
1 pointsShell variables are case insensitive. True or False?Correct
Incorrect
-
Question 3 of 29
3. Question
1 pointsWhich of the following is NOT a valid variable name?Correct
Incorrect
-
Question 4 of 29
4. Question
1 pointsA new environment variable can be “exported” and assigned a value with a single command.True or False?Correct
Incorrect
-
Question 5 of 29
5. Question
1 pointsWhich of the following is NOT a valid command for variable declaration?Correct
Incorrect
-
Question 6 of 29
6. Question
1 pointsThe ___________ command is used to display the value of a specific variable.Correct
Incorrect
-
Question 7 of 29
7. Question
1 pointsWhich command can be used to display both local and environment variables?Correct
Incorrect
-
Question 8 of 29
8. Question
1 pointsA variable once declared cannot be deleted.True or False?Correct
Incorrect
-
Question 9 of 29
9. Question
1 pointsWhich command can be used to delete a variable?Correct
Incorrect
-
Question 10 of 29
10. Question
1 pointsPATH variable directories are searched __________ when executing a command.Correct
Incorrect
-
Question 11 of 29
11. Question
1 pointsWhich of the following is NOT a valid option for executing a command that is not in the directories listed in the PATH variable?Correct
Incorrect
-
Question 12 of 29
12. Question
1 pointsThe command PATH=$PATH:/home/John does the following:Correct
Incorrect
-
Question 13 of 29
13. Question
1 pointsConsider the following value of PATH variable: /bin:/usr/local/sbin:/home/joe/bin:/home/joe/test Joe modifies the my_scr.sh script, which is stored in the directory /home/joe/bin then places a copy of my_scr.sh in /home/joe/test. Executing my_scr.sh will:Correct
Incorrect
-
Question 14 of 29
14. Question
1 pointsThe ___________ command can be used to check if the command already exists.Correct
Incorrect
-
Question 15 of 29
15. Question
1 pointsWhich of the following switches will include the full path in the prompt?Correct
Incorrect
-
Question 16 of 29
16. Question
1 pointsDefining the PS1 variable in an initialization file will make changes to the prompt persistent between logins. True or False?Correct
Incorrect
-
Question 17 of 29
17. Question
1 pointsIf the command HISTIGNORE=’ls*’ is placed in the ~/.bash_profile file, which of the following commands would not be placed in the history list?Correct
Incorrect
-
Question 18 of 29
18. Question
1 pointsWhich of the following is NOT a purpose for creating an alias?Correct
Incorrect
-
Question 19 of 29
19. Question
1 pointsThe command to remove an existing alias from the current shell is:Correct
Incorrect
-
Question 20 of 29
20. Question
1 pointsThe best way to group multiple commands and pass arguments is to:Correct
Incorrect
-
Question 21 of 29
21. Question
1 pointsA function accepts 3 arguments as input. The third argument of a function is identified as:Correct
Incorrect
-
Question 22 of 29
22. Question
1 pointsChanges in the __________ initialization file will affect all the users on the system.Correct
Incorrect
-
Question 23 of 29
23. Question
1 pointsLocal initialization files, by default, are stored in which directory?Correct
Incorrect
-
Question 24 of 29
24. Question
1 pointsSourcing is an effective way to test initialization file changes. Which of the following is used to source a file?Correct
Incorrect
-
Question 25 of 29
25. Question
1 pointsA Login BASH shell executes which of the following additional files (compared to an interactive BASH shell)?Correct
Incorrect
-
Question 26 of 29
26. Question
1 pointsAdministrators use the __________ file to create key environment variables and set key system values for every user.Correct
Incorrect
-
Question 27 of 29
27. Question
1 pointsWhich script is executed when you exit the shell?Correct
Incorrect
-
Question 28 of 29
28. Question
1 pointsTypical BASH exit scripts are found in ~\.bash_logout and __________ files.Correct
Incorrect
-
Question 29 of 29
29. Question
1 pointsMost of the Linux commands used by regular users can be found in which directory?Correct
Incorrect