create bash script linux code example Example 1: shell file in linux #!/bin/sh ls Example 2: how to create a bash script echo "Hello, world!"