Top 150+ Solved Linux Operating System MCQ Questions Answer

From 91 to 105 of 134

Q. How do you see hidden files in your home directory?

a. ls -h

b. ls -la

c. ls -hn

d. ls -R

  • b. ls -la

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

  • a. Put an & symbol at the end of the command line.

Q. What keyboard combination can be used to exit the shell?

a. Ctrl+E

b. Ctrl+C

c. Ctrl+D

d. Ctrl+Z

  • c. Ctrl+D

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.

  • d. It appends data to a file without overwriting it.

Q. How would you remove a directory that is not empty?

a. rm -r

b. rm -f

c. rmdir -f

d. rmdir -le

  • a. rm -r

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

  • 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

  • b. 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

  • c. .bash_history

Q. How would you switch to virtual terminal 1?

a. Ctrl+Alt+F1

b. Alt+F1

c. Ctrl+F1

d. Shift+Ctrl+F1

  • a. Ctrl+Alt+F1

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

  • a. /var/spool/cron/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

  • b. usermod -L 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

  • a. cp -r Project Project.backup

Q. .............is the command used to create new directory.

a. mkdir

b. newdir

c. dir

d. mk/dir

  • a. mkdir
Subscribe Now

Get All Updates & News