Home / Programming Questions / Linux MCQs / Page 149

Linux MCQs with answers Page - 149

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 can be used to change default permissions for files and directories at the time of creation

(A) Chmod
(B) Chown
(C) Umask
(D) Chgrp

Q. Which of the following commands will allow the user to search contents of a file for a particular pattern

(A) touch
(B) grep
(C) find
(D) ls

Q. What communication command provides communication to another user logged on by writing to the bottom of their terminal?

(A) talk
(B) write
(C) chat
(D) transmit

Q. Which command will you use to see the available routes?

(A) show route
(B) route status
(C) netstat -r
(D) none of the mentioned

Q. The permission -rwxr-xr-t represented in octal expression will be

(A) 0777
(B) 1755
(C) 1754
(D) 2754

Q. With a umask value of 112, what is the default permission assigned to newly created regular file?

(A) —x–x-wx
(B) -rw-rw-r–
(C) -r-xr-x-r–
(D) -rw-rw-r–

Q. Given the command $ chmod o-w datafile

(A) sets write permission to everyone for datafile
(B) sets write permission to others for datafile
(C) clears write permission to everyone for datafile
(D) clears write permission to others for datafile

Q. Which of these commands will set the permissions on file textfile to read and write for the owner, read for the group, and nothing for everyone else?

(A) chmod 046 textfile
(B) chmod 640 textfile
(C) chmod 310 textfile
(D) chmod rw r nil textfile

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.