Basic Bash script

PHOTO EMBED

Sun Mar 28 2021 09:19:34 GMT+0000 (Coordinated Universal Time)

Saved by @FlorianC #bash

#!/bin/bash

echo "Starting at: $(date)" # the dollar sign tells the program to execute this file inside of the string and then convert the output of it into a string
echo # print empty line

# add separating line
line="-----------------------------------"

echo "UPTIME"
uptime
echo $line

echo "FREE"
free
echo $line

echo "WHO"; echo; free # you can write commands on the same line separating them by semicolons

echo "Finishing at: $(date)"
content_copyCOPY