how to write a .sh file in linux using vi editor code example Example: shell file in linux #!/bin/sh ls