Skip to content

Latest commit

 

History

History
29 lines (12 loc) · 420 Bytes

File permissions in linux.md

File metadata and controls

29 lines (12 loc) · 420 Bytes

4 : Read

2 : Write

1 : Execute

  • To give permissions to a file

chmod xxx <filename>

  • For read and write permissions:

read 4 + write 2 = 6 (value to be given in the command)

  • For read, write and execute permissions:

read 4 + write 2 + execute 1 = 7 (value to be given in the command)