In order to see file permissions within the terminal, use the `-l` or `-rfl` with the `ls` command. Remember this command can be applied at both the directory and single-file level. For example:
<dd>The file type. A dash just means an ordinary file. `d` means directory </dd>
<dt>user permissions</dt>
<dd>read, write or execute. A dash means 'nothing': the permissions for that slot in the set have not be assigned</dd>
<dt>group and other</dt>
<dd>group is obviously what anyone belonging to the current file's user group can do. Everyone else (outside of the user and the group) is covered by the other permissions, sometimes known as 'world' permissions</dd>
We use `chmod` for transferring ownership and file permissions quickly from the command-line.
### Octal notation
`chmod` uses octal notation. Each numeral refers to a permission set. There are three numerals. The placement denotes the user group. From left to right this is:
`-v` → verbose: tell the user what `chmod` is doing
`-r` → work recursively, i.e apply the action to directories as well as files
`-f` →silent: suppress most error messages
## Running bash files
In most cases, especially when you are working alone, the most frequent codes you are going to need are 700 and 600. When shell scripting, you need to make your scripts executable for them to work, therefore you should always `chmod 700` when creating a `.sh` file.
Then to invoke the script from the shell you simply enter: