In this post we will introduce you to various Simple Linux Directory Commands
Answer is -rwxrwxrwx
1) chmod:
Changing access permission for file and directory. chmod changes the permissions of given file according to mode, which can be either a symbolic representation of changes to make, or an octal number representing the bit pattern for the new permissions. It manages the mode of the file:
chmod has two mode:
a) Symbolic mode
- u,g or o to represent owner, group and other respectively.
- + or - to add or remove a permission
- r, w and x to represent read, write and execute respectively.
b) Numeric mode
- 0 represents ---
- 1 represents --x
- 2 represents -w-
- 3 represents -wx
- 4 represents r--
- 5 represents r-x
- 6 represents rw-
- 7 represents rwx
$ chmod 777 file
$ ls -l
Answer is -rwxrwxrwx