Bash
/bin/bash
## ------------------| Environment Variables
env # List all envs
echo $PATH # List path env
echo $USER # Current user
echo $HOME # Current user's home
echo $PWD # Current workind dir
echo $HISTSIZE # Number of commnds (in memory/current session)
echo $HISTFILESIZE # How many commands in ~./history
export ip="0.0.0.0" # Make ip as global variable01. Introduction
Shebang
#!/bin/bashArrays
array=(hello this is an array 123)
echo ${array[2]}Arguments
Comparison Operators
Arithmetic Operators
Input / Output
02. Flow Control
Loops
If Else
Case Statements
Functions
Last updated
