Sail E0 Webinar

MCQs

Total Questions : 155 | Page 9 of 16 pages
Question 81. Which command is used to assign read-write permission to the owner?
  1.    chmod a+r file
  2.    chmod o+r file
  3.    chmod u=rw file
  4.    chmod og-r file
 Discuss Question
Answer: Option C. -> chmod u=rw file


chmod u=rw file


Question 82. A user executes the following command successfully:$ chmod +x file1.txtWhich of the following is true of the output of this command?
  1.    The command results in adding execute permission to the user who ran this command
  2.    The command results in adding execute permission for the owner of the file
  3.    The command results in an error since the file is not an executable file
  4.    The command results in adding execute permission for all users (i.e., user,group & others)
 Discuss Question
Answer: Option D. -> The command results in adding execute permission for all users (i.e., user,group & others)


The command results in adding execute permission for all users (i.e., user,group & others)


Question 83. Given the command$ chmod o-w datafile
  1.    sets write permission to everyone for datafile
  2.    sets write permission to others for datafile
  3.    clears write permission to everyone for datafile
  4.    clears write permission to others for datafile
 Discuss Question
Answer: Option D. -> clears write permission to others for datafile


clears write permission to others for datafile


Question 84. If you are a root user, how can you grand execute permission only for the owner of the file project1?
  1.    chmod +x project1
  2.    chmod u+x project1
  3.    chmod a+x project1
  4.    chmod U+X project1
 Discuss Question
Answer: Option B. -> chmod u+x project1


chmod u+x project1


Question 85. 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?
  1.    chmod 046 textfile
  2.    chmod 640 textfile
  3.    chmod 310 textfile
  4.    chmod rw r nil textfile
 Discuss Question
Answer: Option B. -> chmod 640 textfile


chmod 640 textfile


Question 86. What does chmod +t do?
  1.    wrong syntax
  2.    set effective userid for filename
  3.    set effective groupid for filename
  4.    set the sticky bit
 Discuss Question
Answer: Option D. -> set the sticky bit


set the sticky bit


Question 87. The command chmod 4777 a.out
  1.    will set the suid bit of a.out
  2.    will set the suid bit of a.out only if the command is issued by root
  3.    is not a valid command
  4.    will set the sticky bit of a.out
 Discuss Question
Answer: Option A. -> will set the suid bit of a.out


will set the suid bit of a.out


Question 88. Which of the following umask settings doesn't allow execute permission to be set by default on directory files
  1.    222
  2.    111
  3.    000
  4.    444
 Discuss Question
Answer: Option C. -> 000


000


Question 89. Which command is used to check filesystem usage in a system?
  1.    mount
  2.    df
  3.    du
  4.    dd
 Discuss Question
Answer: Option B. -> df


df


Question 90. Which of the following umask settings allow execute permission to be set by default on regular files
  1.    222
  2.    111
  3.    000
  4.    None of the given choices
 Discuss Question
Answer: Option D. -> None of the given choices


None of the given choices


Latest Videos

Latest Test Papers