ITS1‐Introductory Bash Scripting - ConnorEast/Tech-Journal GitHub Wiki
Creating a bash script:
- Command 1 ---> "cd ~"
- Command 2 ---> "touch ping.sh"
- Command 3 ---> "vi ping.sh"
Insert the following into the bash script:
#!/usr/bin/bash
pwd ; hostname ; date
Save the file and use the following commands:
- Command 4 ---> "chmod u+x ping.sh"
- Command 5 ---> "./ping.sh"
Deliverable 1: Self made script;
Deliverable 2: For Each Loop;