Karellism

Executing A .sh file - example

Dec 17th, 2020
1,397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. user@bash: ./myscript.sh
  2. bash: ./myscript.sh: Permission denied
  3. user@bash: ls -l myscript.sh
  4. -rw-r--r-- 18 user users 4096 Feb 17 09:12 myscript.sh
  5. user@bash: chmod 755 myscript.sh
  6. user@bash: ls -l myscript.sh
  7. -rwxr-xr-x 18 user users 4096 Feb 17 09:12 myscript.sh
  8. user@bash: ./myscript.sh
  9. Hello World!
Advertisement
Add Comment
Please, Sign In to add comment