![]() |
Stockphotos.io |
$/home:
Then you can issue
$/home: cd jthomas
Then you come to your own directory:
$/home/jthomas:
How to write your first script:
$/home/jthomas: vi test.sh
Here, you can write your script.
The first line in the script is:
#!/bin/ksh - It denotes which shell you are going to use.
Example:
$vi test.sh
#!/bin/ksh
################################################### #
Written By: Jason Thomas # Purpose: This script was written to show users
how to develop their first script
################################################### # Denotes a comment
root
daemon bin sys adm uucp nobody lpd
How to run a script
$ sh test.sh
Also read: The complete list of UNIX basic commands
0 Comments
Thanks for your message. We will get back you.