How do you change permissions on a directory of file?
Answer Posted / bhaskar
To change permission on a file we can use chmod command.
Only thing to remember that to change a file permission one
must be the owner of that file or root in that system.
the typical format of chmod is
chmod <permissions> <filename(s)>
e.g. chmod +777 examplefile
The above command will provide read, write and execute
permission to all in the file examplename.
value for read is 4
write is 2
execute is 1
now to give all permissions it becomes 4+2+1=7
first digit refers to the permission of the owner.
second digit refers to the group permission and last digit
refers to permission to all
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How can you run a linux program in the background simultaneously when you start your linux server?
Which password package is installed for the security of central password?
What does stands for in linux?
What is linux kernel? Is it legal to edit linux kernel?
Is arch linux hard to use?
Can I use kali linux as my main os?
What are scripts in linux?
How linux is different from unix?
Which is the default shell in linux?
What is kernel parameters?
List the main applications of 8 bit microprocessors?
What are the qualities of soft links?
Is it legal to edit the linux kernel?
Which of the quoting or escape characters allows the dollar sign ($) to retain its special meaning?
Explain how to color the git console?