Home / Programming Questions / Linux MCQs / Page 147

Linux MCQs with answers Page - 147

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

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

(A) wc – 1
(B) wc - w
(C) wc - c
(D) wc - r

Q. Which of the following directories contain all the files created by a user, including his login directory?

(A) /tmp
(B) /usr
(C) /etc
(D) /dev

Q. Which command is used to assign only read permission to all three categories of the file ‘note’?

(A) chmod a-rw
(B) chmodgo+r note
(C) chmodugo = r = note
(D) chmodu+r, g+r, o-x note

Q. Which command is used to make all files and sub-directories in the directory (prog) executable by all users?

(A) chmod –R a+xprogs
(B) chmod –x a+xprogs
(C) chmod -1 a+xprogs
(D) chmod –R 222 progs

Q. The chmodugo+rw note command can be represented in octal notation as

(A) chmod 555 note
(B) chmod 666 note
(C) chmod 333 note
(D) chmod 444 note

Q. Which of the following commands is used to view the file 24 lines at a time?

(A) pg
(B) 1p
(C) cat
(D) /p

Q. The second set of the three permissions (r-) indicates that

(A) group has read permission only
(B) other has read permission only
(C) group has write permission only
(D) owner has read permission only

Q. Which command is used to set terminal IO characteristic?

(A) tty
(B) ctty
(C) ptty
(D) stty

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.