Get current date / time
A very useful function of the unix shell is the date function. It allows you to get the current system time in any format you need. Some examples:
date
: returns the current date / timedate -u
: returns the current UTC date / timedate +"%s"
: returns the current date / time in unix timestamp format (seconds since the epoch)