You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
496 B
Markdown

6 years ago
# learn_bash
A repo dedicated to getting better at Bash Shell scripting
## Commands
Add read and execute to a script using the DAC who symbols `u`, `g`, `o`. The ` a` symbol is equivalent to `ugo`. Both the read and execute bits must be set for the shell to read then execture a shell scripte.
```bash
chmod u+rx <script>
```
Using absolute params here we are adding `rwx` to user, and `r` to group, and other.
```bash
chmod 744 <script>
```
```bash
chown <user_id>:<group_id> <script>
```