Top 150+ Solved Linux Programming MCQ Questions Answer

From 121 to 135 of 196

Q. What command is used to remove files?

a. dm

b. rm

c. delete

d. erase

  • b. rm

Q. What command is used to count just the number of lines contained in a file?

a. wc –r

b. wc –w

c. wc –c

d. wc –l

  • d. wc –l

Q. What command is used to sort the lines of data in a file in reverse order?

a. sort –r

b. st

c. sh

d. sort

  • a. sort –r

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. Which statement resumes the next iteration of a for, while, select, or untill loop?

a. continue

b. break

c. complete

d. command

  • b. break

Q. Which command can create environment variable?

a. export

b. set

c. read

d. none of the mentioned

  • d. none of the mentioned

Q. Which of the following is not a major Unix shell?

a. X Shell

b. C Shell

c. Bash Shell

d. Korn Shell

  • c. Bash Shell

Q. Which was the first Unix shell?

a. X Shell

b. C Shell

c. Bash Shell

d. Korn Shell

  • b. C Shell

Q. The purpose of the PATH variable is to

a. Show the current directory

b. Show the directory path of a file

c. Tells the shell what directories to search when a command is entered

d. Both A and C

  • c. Tells the shell what directories to search when a command is entered

Q. The shell in the Unix system is the

a. Outer layer of a seed

b. User interface with the operating system

c. Provides a prompt

d. Both (b) and (c)

  • a. Outer layer of a seed
Subscribe Now

Get All Updates & News