Top 150+ Solved Linux Operating System MCQ Questions Answer

From 76 to 90 of 134

Q. How do you create a crontab entry?

a. crontab --create

b. crontab -make

c. crontab -e

d. crontab –c

  • c. crontab -e

Q. How would you display running httpd processes?

a. ps -C httpd

b. ps -d httpd

c. ps -r httpd

d. ps -D httpd

  • a. ps -C httpd

Q. How would you avoid accidentally removing files?

a. rm -i

b. rm -chk

c. rm -a

d. rm -r

  • a. rm -i

Q. How would you search for the string clothes at the end of the line in a file called shopping?

a. grep 'clothes#' shopping

b. grep 'clothes!' shopping

c. grep 'clothes$' shopping

d. grep 'clothes^' shopping

  • c. grep 'clothes$' shopping

Q. Which runlevel allows full multiuser mode but with no graphical login manager?

a. Runlevel 1

b. Runlevel 2

c. Runlevel 3

d. Runlevel 0

  • c. Runlevel 3

Q. How would you sort a file called shopping on column 3?

a. sort -n 3 shopping

b. sort -k 3 shopping

c. sort -c 3 shopping

d. sort -c3 shopping

  • b. sort -k 3 shopping

Q. How do you run a job that will continue running even if you are logged out?

a. hup.out command

b. hup command

c. jobc command

d. nohup command

  • d. nohup command

Q. What is the following syntax used for? command >file1 2>file2

a. Send command's standard output to file1,and its standard error to file2

b. Send command's standard error to file1, and its standard output to file2

c. Send command's standard error to file1, and its standard input to file2

d. Send command's standard input to file1,and its standard output to file2

  • a. Send command's standard output to file1,and its standard error to file2

Q. What does the 2>&1 at the end of the following command mean?find / -name fred.txt > names 2>&1

a. Send standard error to a file called &1

b. Append standard error to a file called &1

c. Send standard error to the same place as standard output

d. Send the output of the find command to /dev/null

  • c. Send standard error to the same place as standard output

Q. Which command is used to unmount a filesystem?

a. dmount

b. dismount

c. unmount

d. umount

  • d. umount

Q. Which file determines what will be run at each runlevel?

a. /etc/init/runlevels

b. /etc/levels/fstab

c. /etc/fstab

d. /etc/inittab

  • d. /etc/inittab

Q. What is the full path for grub's configuration file

a. /boot/grub/lsof.conf

b. /boot/grub/menu.lst

c. /etc/grub/grub.conf

d. /etc/grub/grub.txt

  • b. /boot/grub/menu.lst

Q. How do you display the kernel release?

a. kernel -r

b. uname -r

c. cat /proc/etc/kernel/release

d. cat /etc/config/kernel/release

  • b. uname -r

Q. How do you display your current crontab entry?

a. crontab -display

b. crontab -d

c. list --crontab

d. crontab -l

  • d. crontab -l
Subscribe Now

Get All Updates & News