Top 150+ Solved Linux Operating System MCQ Questions Answer
Q. How do you direct the shell to execute a command in the background?
a. Put an & symbol at the end of the command line.
b. Key in fg followed by the command name.
c. Press Ctrl+c after you have keyed in the command.
d. Press Ctrl+d after you have keyed in the comman
Q. What is the purpose of the following operator? >>
a. It is used to send the output of one command so it becomes the input of a second command.
b. It is used to send both input and output to the same file.
c. It is used to overwrite the contents of a file.
d. It appends data to a file without overwriting it.
Q. To display information about the processor itself - display the contents of which file?
a. /bin/cpu
b. /dev/cpuinfo
c. /etc/cpu
d. /proc/cpuinfo
Q. To run date first, and then ls -l, which of the following is correct?
a. date $ ls -l
b. date ; ls -l
c. date - ls -l
d. date > ls -l
Q. Which file is the list of commands you recently entered stored in?
a. .bashrc_history
b. .history
c. .bash_history
d. .bash_list_history
Q. In which directory are the crontab files for users stored on suse linux?
a. /var/spool/cron/tabs
b. /usr/lib/cron
c. /usr/bin/cron/crontabs
d. /var/spool/cron/users/tabs
Q. How would you lock the user account named csm099?
a. usermod -l csm099
b. usermod -L csm099
c. usermod --l csm099
d. usermod -lock csm099
Q. How do you copy an entire directory structure? E.g. from Project to Project.backup
a. cp -r Project Project.backup
b. cp -e Project Project.backup
c. cp -d Project Project.backup
d. cp -s Project Project.backup