24 March 2016

How to Write Your First ksh Script in UNIX

How to login into Unix, very basic commands
#How to login into Unix, very basic commands:
When you login into UNIX, you are first be in the home directory:

$/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.ksh #!/bin/ksh ################################################### # Written By: Jason Thomas # Purpose: This script was written to show users how to develop their first script ################################################### # Denotes a comment

How to run a script

$./test.ksh root daemon bin sys adm uucp nobody lpd

More Resources

No comments:

Post a Comment

Thanks for your message. We will get back you.

© 2010-2017 Biganalytics.me. All rights reserved.. Powered by Blogger.

Total Pageviews

All material, files, logos and trademarks within this site are properties of their respective organizations.