1. chmod
chmod 755 file.shChanges file permissions (read, write, execute).
2. chown
chown user:group file.txtChanges file ownership to user and group.
3. chgrp
chgrp groupname file.txtChanges group ownership only.
4. umask
umask 022Sets default permissions for new files.
5. ls -l
ls -lDisplays file permissions and ownership.
6. getfacl
getfacl file.txtShows Access Control List (ACL) for a file.
7. setfacl
setfacl -m u:john:rw file.txtSets ACL permissions for specific users.
8. sudo
sudo commandRuns commands as another user (typically root).
9. su
su - usernameSwitches to another user account.
10. passwd
passwd usernameChanges a user’s password.
11. usermod
usermod -aG group userAdds a user to a group.
12. id
id usernameShows user ID and group memberships.
13. groups
groups usernameLists all groups a user belongs to.
14. visudo
sudo visudoSafely edits the sudoers file.
15. newgrp
newgrp groupTemporarily changes the current group ID.
16. stat
stat file.txtShows detailed metadata including permissions.