Title | Quiz BASH 1 - Linux Hybrid BASH quiz 1 |
---|---|
Author | Esther Jones |
Course | Operating System Fundamentals (GNU/Linux) |
Institution | Algonquin College |
Pages | 9 |
File Size | 384.1 KB |
File Type | |
Total Downloads | 65 |
Total Views | 128 |
Linux Hybrid BASH quiz 1...
Submission View 1 / 1 point
Question 1
What is the command used in bash shell to display the command history list? Question options:
list history locate type Question 2
1 / 1 point
To clear command history, you should use command _________________. Question options:
history -c history | more clear
1
!! Question 3
1 / 1 point
What is the command used to re-execute the second command in the command history list in bash shell? Question options:
history -2 history -c !! !2 Question 4
1 / 1 point
What environment variable is used to store the file name used to store command history in bash shell? Question options:
$HISTFILE $HISTSIZE $FILE
2
$PATH Question 5
1 / 1 point
The command that will display the size of the command history list in bash shell? Question options:
echo $HISTSIZE history size echo $PATH echo $HISTFILE Question 6
1 / 1 point
Which of the following command will search for binary, source code and manual page for cp command? Question options:
man cp locate cp whereis cp
3
which cp Question 7
1 / 1 point
The command that will only search $PATH to locate commands in bash shell _______________. Question options:
which type whereis history Question 8
1 / 1 point
What is root user's home directory? Question options:
/home /home/user /root
4
/usr Question 9
1 / 1 point
Which of the following commands that renames ~/lab3rv/suse to ~/lab3rv/suse.save? Question options:
rm ~/lab3rv/suse ~/lab3rv/suse.save mv ~/lab3rv/suse ~/lab3rv/suse.save cp ~/lab3rv/suse ~/lab3rv/suse.save mkdir ~/lab3rv/suse ~/lab3rv/suse.save Question 10
1 / 1 point
The command that will shutdown the Linux system in 20 minutes ______________________. Question options:
sudo shutdown -h +20 sudo shutdown -r +20 exit
5
sudo reboot Question 11
1 / 1 point
What is the Linux command that is used to update file's timestamp? Question options:
clear cat touch more Question 12
1 / 1 point
The command that will display all files(including hidden files) in user's home directory ___________________. Question options:
ls ~/ ls -l ~/
6
ls -a ~/ cd ~ Question 13
1 / 1 point
Login as the default user, what is the command used to reset root password? Question options:
sudo passwd root su password pwd Question 14
1 / 1 point
Which of the following is not true about the cp command in Linux? Question options:
The default cp command will overwrite existing file without prompting user. The default cp command does not copy directoires
7
The cp command does not copy directories The cp command can copy multiple files from one location to another. Question 15
1 / 1 point
The command used to find your current shell ________________________. Question options:
echo $SHELL cat /etc/shells
PS!="\u@\h: \w$" whoami
Attempt Score: 15 / 15 Overall Grade (highest attempt) :
8
15 / 15
9...