Advertisement
Guest User

Untitled

a guest
Oct 4th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. chmod u+x /home/joey/hello.sh
  2.  
  3. ./hello.sh # if you are in the same directory
  4. ~/hello.sh # if you are in another directory
  5. hello.sh # if you put in a directory included in the $PATH
  6.  
  7. sudo cp ~/hello.sh /usr/sbin
  8. sudo chmod o+x /usr/sbin/hello.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement