Ubuntu Bash scripts

From Lofaro Lab Wiki
Jump to: navigation, search


Above is a simple bash script for some files all you need to do is cd to the location of the files the gnome-terminal opens a new command terminal and you tell it to run what ever program in that terminal.

You must have the #!/bin/sh at the top for it to work.

The bash script must be saved as anything.sh

To run the script you cd to the location of the bash script and then type bash anything.sh