File permissions
a l see hidden files to see details
ls -al
. lrwxrwxrwx
. XR-XR-DR-X
. -rw -------
permissions were 10 yards
first one - the representative file, d indicates a directory, l represents a connecting
surface 9 owner permission code representation u, g belongs group permissions, o other people's rights
Permission to modify
the chmod [options] mode file name
- Option
-R Recursive
- mode
authority digital representation of
R & lt -. 4
W - 2
X -. 1
rwxr-X-XR
. 7. 5. 5
Change file owner
chown username filename
Change the owner and group
chown root: root filename
Change your group
chgrp group file name