Skip to main content

Posts

Showing posts with the label bash

Bash script: "Hello world!"

Bash script is very nice and important if one is using Unix system. Planning on using bash scripts as much as posible, I would like to share a quick and easy example to start using it: Create a shell call  hello.sh Add the lines to the file: #!/bin/bash echo "Hello world!" Go to the folder contains the file. Type  bash hello.sh . The echo command will print out  Hello world! your terminal