You have a script called hellosh in your home directory Writ
You have a script called ~/hello.sh in your home directory. Write a command to give yourself the permissions to execute the file ~/hello.sh, without changing the existing permissions of ‘others’
Solution
in unix
use the below command
you can also use commands with some variation i am including them in a table below
The first and probably easiest way is the relative (or symbolic) method, which lets you specify access classes and types with single letter abbreviations. A chmod command with this form of syntax consists of at least three parts from the following lists:
| Access Class | Operator | Access Type |
|---|---|---|
| u (user) | + (add access) | r (read) |
| g (group) | - (remove access) | w (write) |
| o (other) | = (set exact access) |
