Owner can read, write and execute; group can read and execute; others can only read.
# numeric formchmod754 deploy.sh# same thing, symbolic formchmodu=rwx,g=rx,o=r deploy.sh# what ls -l shows afterwards-rwxr-xr-- 1 alice devs 1.2K Nov 18 09:14 deploy.sh
File name:(try id_rsa)
Presets
Files vs directories
On a file: r = view contents, w = change contents, x = run it as a program. On a directory: r = list the names inside, w = create, rename or delete files inside, x = enter it (cd) and reach files in it.
Windows (NTFS) does it differently
Instead of three fixed slots, NTFS uses access control lists: any number of users or groups, each with Allow or Deny entries for rights like Full control, Modify, Read & execute, Read and Write. Permissions inherit from parent folders, and an explicit Deny beats an Allow. View or change them with icacls deploy.sh or the Security tab.