Use "+" to set permissions and "-" to cancel
Ls -lh display permission
Ls /tmp | pr -T5 -W$COLUMNS Divide the terminal into 5 columns
Chmod ugo+rwx directory1 Sets the owner (u), group (g), and others (o) of the directory to read (r), write (w), and execute (x) permissions
Chmod go-rwx directory1 delete group (g) and other people (o) read and write permissions to the directory
Chown user1 file1 changes the owner property of a file
Chown -R user1 directory1 Change the owner property of a directory and change the properties of all files in the directory.
Chgrp group1 file1 group of changed files
Chown user1:group1 file1 changes the owner and group properties of a file
Find / -perm -u+s List all files in the system that use SUID control
Chmod u+s /bin/file1 Set the SUID bit of a binary file - the user running the file is also given the same permissions as the owner
Chmod u-s /bin/file1 disables the SUID bit of a binary file
Chmod g+s /home/public sets the SGID bit of a directory - similar to SUID, but this is for the directory
Chmod g-s /home/public disables the SGID bit of a directory
Chmod o+t /home/public Set the STIKY bit of a file - only legal owners are allowed to delete files
Chmod o-t /home/public disables the STIKY bit of a directory

