Home

Writing Bash Scripts

BASH-1: Setting up scripts

Change shell

exec [zsh|bash]

Set env variable from bash

export EXAMPLE='/to/script/path'

For cd, use aliases

alias proj="cd /home/tree/projects/java"

Writing a Shell Script

file.sh

#!/bin/bash

Repository

https://github.com/okeeffed/developer-notes-nextjs/content/linux/writing-bash-scripts

Sections


Related