You Scored:
Ranking:
Past Papers LINUX OS MCQs Questions Answers
1. Which variable contains last background job process id?
$$
$?
$*
$! (Answer)
2. Which command is/are used to remove directory in Linux?
rm -r
rmdir
Both a and b (Answer)
None of Above
3. Which command is used to record session in Linux?
Session
Both a and b
None of these
Script (Answer)
4. Which of the following OS is not based on Linux?
Redhat
Ubuntu
CentOs
BSD (Answer)
5. Which combination of keys is used to exit from terminal?
Ctrl + t
Ctrl + z
Ctrl + e
Ctrl + d (Answer)
6. Which of the following command can be used as an alternative to echo command?
Printf (Answer)
Printr
Print
None of these
7. The $ variables in a shell script context designates?
The runtime of the script
PID of the shell running the script (Answer)
Number of command line arguments
The exit status of the shell script
8. Which command(s) is/are used to get help about a command in Linux?
info
man
Both a and b (Answer)
None of these
9. In Linux everything stored as a?
Directory
file (Answer)
Executables
None of the above
10. What is the output of the following command for bash shell echo linux $0?
linux
linux echo
linux bash (Answer)
linux linux
11. Which variable is used to display number of arguments specified in command line?
$?
$0
$# (Answer)
$*
12. Which of the following is not a valid login shell in Linux?
Z shell
Bash Shell
Net Shell (Answer)
C shell
13. Which of the following command is used to create file in Linux?
Touch
Cat
All of the above
Echo
14. Which command is used to list all the files in your current directory(including hidden)?
ls -a (Answer)
ls -l
ls -i
ls -t
15. Which command is used see the list of users who are currently logged-in?
Login
Users
Which
Who (Answer)