| Hello World in BASH |
|
| programming |
This article describes how to write and execute a "Hello World" bash script on Linux (Fedora).
1. the prerequisites
If it is not installed yet, you can install it with yum (you need to be root to do that):
Well, I bet it is already installed :-)
2. write the code
now write the following lines into it: save the file and exit vi with ":wq + enter"
explanationThis tells the system to use the /bin/bash interpreter to execute the script. You can find out the full path of your bash interpreter by entering the following command: This prints out the string "Hello World!".
3. make the script executable4. run the program
- or -
Comments (0)
Powered by !JoomlaComment 4.0 beta1
!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved." |


