Skip to content

janw.me

Another tech Blog

  • About

Bash script shebang

The shebang is the first line of a script so a shell knows what program to run it agianst
There are a lot of formats for the shebang for bash scripts. The best one is:

#!/usr/bin/env bash

source: https://stackoverflow.com/a/10383546/933065

Author admin_janwPosted on 19-Apr-201829-Mar-2021Categories TIL

Post navigation

Previous Previous post: Xdebug on vagrant cli scripts
Next Next post: Bash argument set

Search

Menu

  • About
  • Plugins
    • Default featured image
    • Disable full site edit
    • uAfrica Shipping

RaspBerry Pi

  • Up and running
    • Opening a Pi to the outside world
    • Only allow ssh key login
  • Installing PHP8.2
  • Installing Nginx
    • Setup Letsencrypt SSL
  • Installing Mysql/MariaDB
  • Installing Selfoss
  • Install Extra Programs

Recent Posts

  • WordPress overview
  • Preview installable versions with apt
  • Create full site Zip Backup
  • Get Checksum of a directory
  • Github actions
  • Change saved gutenberg blocks
  • About
janw.me Proudly powered by WordPress