#!/bin/sh# This is a comment. Comments are good.# This is my first shell script.echo "System Status Report"dateecho -n "System uptime and load:"
; uptimeecho -n "Operating System: " ; sysctl -n kern.ostypeecho -n "OS Version: " ; sysctl -n kern.osreleaseecho -n "OS Revision number: " ; sysctl -n kern.osrevisionecho -n "Hostname: " ; sysctl -n kern.hostnamebytes=`sysctl -n hw.physmem`megabytes=`expr $bytes / 1024 / 1024`echo "Physical memory installed
(megabytes): $megabytes"
-n
an argument or an option?$bytes
and $megabytes mean in the last two lines?| Previous - Opening
Files from the Command Line |
Next
- Take a short break |
|
| Home |