Linux Makefile Question:
Download Questions PDF

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)

Answer:

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

Download Makefile Interview Questions And Answers PDF

Previous QuestionNext Question
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
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