Permissions
Permissions determine the ways different users can interact with a file or directory. When listing a file with the ls -l command, the output includes permission information. For the example we will use a script called hello.sh located in the Documents directory: Follow Along Use the following command to switch to the Documents directory: sysadmin@localhost : ~ $ cd ~/Documents sysadmin@localhost : ~/Documents $ ls -l hello.sh -rw-rw-r-- 1 sysadmin sysadmin 21 Aug 1 02:35 hello.sh Below is a review of the fields relevant to permissions. File Type Field - rw-rw-r-- 1 sysadmin sysadmin 21 Aug 1 02:35 hello.sh The first character of this output indicates the type of a file. Recall if the first character is a - this is a regular file. If the character was a d , it would be a directory. Permissions Field - rw-rw-r-- 1 sysadmin sysadmin 21 Aug 1 02:35 hello.sh After t...