create sh file code example Example 1: shell file in linux #!/bin/sh ls Example 2: run sh file sh yourfile.sh