xxxxxxxxxx
#What this alias does:
#1.Creates a new file named 'new_script'
#2.Appends a shebang '#!/bin/bash' to first line of 'new_script' (be sure to swap example shebang with YOUR specific shebang [use 'which bash' to see yours]
#3.Makes 'new_script' executable
#4.lists current working directory in a tree form [on commandline input- 'sudo apt install tree' if you dont have it]
alias newscript="echo 'Creating new script...' && echo '#!/example/shebag/bin/bash' > new_script && chmod +x new_script && tree"
xxxxxxxxxx
# open .bashrc to add your alias
nano ~/.bashrc
# add your alias
alias alias_name="command_to_run"
# activate the alias for the session
source ~/.bashrc