This set of Linux / Unix questions and answers will be useful for anyone looking for sample questions and dumps on Redhat, CompTIA, LPI, Ubuntu and SuSE certification exams.
1. The permission -rwxr-xr-t represented in octal expression will be
a) 0777
b) 1755
c) 1754
d) 2754
View Answer
Explanation: None.
2. 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–
View Answer
Explanation: None.
3. Which command is used to assign read-write permission to the owner?
a) chmod a+r file
b) chmod o+r file
c) chmod u=rw file
d) chmod og-r file
View Answer
Explanation: None.
4. 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
View Answer
Explanation: None.
5. 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
View Answer
Explanation: None.
6. If you are a root user, how can you grand execute permission only for the owner of the file project1?
a) chmod +x project1
b) chmod u+x project1
c) chmod a+x project1
d) chmod U+X project1
View Answer
Explanation: None.
7. A user executes the following command successfully:
$ chmod +x file1.txt
Which of the following is true of the output of this command?
a) The command results in adding execute permission to the user who ran this command
b) The command results in adding execute permission for the owner of the file
c) The command results in an error since the file is not an executable file
d) The command results in adding execute permission for all users (i.e., user,group & others)
View Answer
Explanation: None.
8. What does chmod +t 9. Which of the following umask settings doesn’t allow execute permission to be set by default on directory files 10. Which of the following umask settings allow execute permission to be set by default on regular files 11. The command chmod 4777 a.out Sanfoundry Global Education & Learning Series – Linux Administration & Programming. Here’s the list of Best Books in Linux Commands & Shell Programming. To practice all questions on Linux Administration & Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on Linux.
a) wrong syntax
b) set effective userid for filename
c) set effective groupid for filename
d) set the sticky bit
View Answer
Explanation: None.
a) 222
b) 111
c) 000
d) 444
View Answer
Explanation: None.
a) 222
b) 111
c) 000
d) None of the mentioned
View Answer
Explanation: None.
a) will set the suid bit of a.out
b) will set the suid bit of a.out only if the command is issued by root
c) is not a valid command
d) will set the sticky bit of a.out
View Answer
Explanation: None.
Here’s the list of Best Books in Linux Kernel, Device-Drivers & System Programming.