Unix Permissions - Using chmod : Viewing File Permissions
Viewing File Permissions
bigmoose (25) ls -ltotal 4-rwxr-xr-x 1 ericl staff 40 Aug 23 16:21 config.sh-rw-rw-r-- 1 ericl staff 16 Aug 23 16:20 doc1.txt-rw------- 1 ericl staff 22 Aug 23 16:20 doc2.txt-rw-r--r-- 1 ericl staff 26 Aug 23 16:20 doc3.txt
Use ls -l to show permissions:
config.sh is readable and executable by anyone
doc1.txt is rw for ericl and group staff and r for everyone else
doc2.txt is rw only for ericl
doc3.txt is rw for ericl and r for everyone else