Wednesday, April 4, 2012


+x means a+x : all user can execute

$ chmod +x your-script-name
$ chmod 755 your-script-name





Examples:
$ bash bar
$ sh bar
$ ./bar



echo show on monitor


$ vi first
#
# My first shell script
#
clear
echo "Knowledge is Power"


$ ./first

No comments:

Post a Comment