#!/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)"
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter