## Linux Bash Notes - Things I use often, a nice place to keep a reminder...

Linux Bash Notes - Things I use often, a nice place to keep a reminder...

# BASH

I use a lot of Bash and Powershell scripts, I will update this page mainly as a aide-memoire for usefull scripts and snippets…

### 1. Time the execution time of your command or script

time yourscript.sh

--- or ---

start=date +%s
stuff
end=date +%s

runtime=$((end-start)) --- or --- SECONDS=0 myScript.sh echo$SECONDS