recategorized
1,454 views
0 votes
0 votes

Which UNIX/Linux command is used to make all files and sub-directions in the directory "progs" executable by all users?

  1. chmod - R a + x progs
  2. chmod - R 222 progs
  3. chmod - X a + x progs
  4. chmod - X 222 progs
recategorized

2 Answers

2 votes
2 votes
chmod -R a+x progs

this will make all files and sub-directories in the directory (progs) executable by all users.

-R is for recurssive calls, so that sub-directories within the directories can be accessed.

a is for all users

+x is for making things executable

----------

A total of 10 bits are used to represent file permissions 

d/f,rwx,rwx,rwx

First bits tell whether the file is directory or not. If it is 1 then directory else file.

rest 9 bits are divided into three sections. First section is permission for current USER, the second one for the group to which the user belongs and the last one to others.

Each section has 3 bits, 

If first bit is set then it is readable, second bit is for writable and last bit is for executable.

Related questions

0 votes
0 votes
0 answers
1
makhdoom ghaya asked Aug 30, 2016
692 views
Which command allows you to view your file $24$ lines at a time ?MoreCatPgNone of the above
3 votes
3 votes
1 answer
2
go_editor asked Jul 22, 2016
4,152 views
Which of the following is not a part of an expert system shell?Knowledge baseInterference engineExplanation facilityNone of the above
0 votes
0 votes
1 answer
3
Beyonder asked Mar 6, 2017
851 views
The following source code corresponding to a 'bash' shell script 'sl.sh' in UNIX system:for i in $* do cat $i doneWhat will be the output if 'sl.sh' is executed from the ...
2 votes
2 votes
2 answers
4