Top 150+ Solved Linux Operating System MCQ Questions Answer

From 61 to 75 of 134

Q. What command is used to copy a file?

a. tar

b. cpio

c. cp

d. copy

  • c. cp

Q. What command is used to display your current working directory?

a. path

b. pwd

c. prompt $p$g

d. dir

  • b. pwd

Q. Which of the following command is used to mount NFS filesystems?

a. nfsmount

b. knfsd

c. mount

d. All of the above

  • c. mount

Q. Which of the following command lists the last 10 lines of a file?

a. grep

b. tail

c. head

d. cat

  • b. tail

Q. What command is used to terminate a process?

a. kill

b. cancel

c. haltsys

d. shutdown

  • a. kill

Q. What command is used with vi editor to delete three words?

a. 3$d

b. 3 dw

c. 3 x

d. 3 dd

  • b. 3 dw

Q. What command is used to assign only read permission to all three categories of the file'letter'?

a. chmod u + r, g + r, o - x letter

b. chmod ugo = r letter

c. chmod a - rw letter

d. chmod go + r letter

  • b. chmod ugo = r letter

Q. What command is used with file named 'letter' to remove the executable permission from the user and assign read permission to the group and others?

a. chmod go + x, u - x letter

b. chmod g - x, uo + r letter

c. chmod go + r, u + x letter

d. chmod u - x, go + r letter

  • d. chmod u - x, go + r letter

Q. What command is used to assign executable permission to the owner of the file named "letter"?

a. chmod ugo + x letter

b. chmod u + x letter

c. chmod u + w letter

d. chmod g + x letter

  • b. chmod u + x letter

Q. What command is used to summarize the disk usage?

a. disk

b. du

c. fdisk

d. chkdsk

  • b. du

Q. What is the following syntax used for command 2> /dev/null

a. Send the output of command to a file called /dev/null

b. Discard standard error entirely.

c. Append the output of command to a file called /dev/null

d. Send error messages from command to a file called /dev/null

  • d. Send error messages from command to a file called /dev/null

Q. How do you delete your crontab entry?

a. crontab -d

b. crontab -e

c. crontab -r

d. del -crontab

  • c. crontab -r
Subscribe Now

Get All Updates & News