Home / Programming Questions / Linux MCQs / Page 4

Linux MCQs with answers Page - 4

Dear candidates you will find MCQ questions of Linux here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

R

Ram Sharma • 178.09K Points
Coach

Q. Which of the following command is used to create file in Linux?

(A) touch
(B) cat
(C) echo
(D) All of the above

R

Ram Sharma • 178.09K Points
Coach

Q. In Linux everything stored as a

(A) file
(B) directory
(C) executables
(D) None of the above

R

Ram Sharma • 178.09K Points
Coach

Q. Which of the following command can be used as an alternative to echo command?

(A) print
(B) printr
(C) printf
(D) none of these

R

Ram Sharma • 178.09K Points
Coach

Q. Which command is used see the list of users who are currently logged-in?

(A) login
(B) users
(C) who
(D) which

R

Ram Sharma • 178.09K Points
Coach

Q. Which directory in Linux contains all the config file of the system?

(A) /etc
(B) /var
(C) /lib
(D) /bin

R

Ram Sharma • 178.09K Points
Coach

Q. Which of the following command is used to count number of lines in a file?

(A) wc -l
(B) wc -c
(C) wc -w
(D) None of these

R

Ram Sharma • 178.09K Points
Coach

Q. Which command is used to copy entire directory?

(A) cp -r
(B) cp -i
(C) cp
(D) none of these

R

Ram Sharma • 178.09K Points
Coach

Q. Which special character should be avoided during naming a file?

(A) .(dot)
(B) $
(C) _(underscore)
(D) -(Hyphen)

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.