~$ cd /Library/WebServer/CGI-Executables/ CGI-Executables$ more test.cgi #!/bin/bash echo "Content-Type: text/plain" echo echo "Running a Bash shell script from cgi-bin successfully!" echo -n "Now it's: " date echo -n "User: " whoami echo -n "Directory: " ls -l exit 0 CGI-Executables$ bash test.cgi Content-Type: text/plain Running a Bash shell script from cgi-bin successfully! Now it's: Tue Oct 27 14:41:15 MST 2026 User: sandiway Directory: total 944 -rwxr-xr-x@ 1 root wheel 457047 Nov 1 2022 canvasjs.min.js -rwxr-xr-x 1 root wheel 690 Nov 3 2022 cmudict.cgi -rwxr-xr-x 1 root wheel 992 Nov 1 2022 diskspace.cgi -rwxr-xr-x 1 root wheel 166 Oct 31 2018 get.cgi -rwxr-xr-x 1 root wheel 349 Oct 31 2018 get2.cgi -rwxr-xr-x@ 1 root wheel 151 Nov 8 2022 read.cgi -rwxr-xr-x 1 root wheel 196 Nov 1 2022 test.cgi CGI-Executables$ df -g Filesystem 1G-blocks Used Available Capacity iused ifree %iused Mounted on /dev/disk3s1s1 1858 11 79 13% 458735 831371160 0% / devfs 0 0 0 100% 706 0 100% /dev /dev/disk3s6 1858 0 79 1% 0 831371160 0% /System/Volumes/VM /dev/disk3s2 1858 7 79 9% 1055 831371160 0% /System/Volumes/Preboot /dev/disk3s4 1858 0 79 1% 66 831371160 0% /System/Volumes/Update /dev/disk1s2 0 0 0 2% 1 4904120 0% /System/Volumes/xarts /dev/disk1s1 0 0 0 2% 30 4904120 0% /System/Volumes/iSCPreboot /dev/disk1s3 0 0 0 1% 93 4904120 0% /System/Volumes/Hardware /dev/disk3s5 1858 1758 79 96% 4340000 831371160 1% /System/Volumes/Data map auto_home 0 0 0 100% 0 0 - /System/Volumes/Data/home /dev/disk5s1 8 7 0 91% 498246 8037120 6% /Library/Developer/CoreSimulator/Volumes/iOS_21A328 com.apple.TimeMachine.2026-10-20-003635.local@/dev/disk3s5 1858 1711 79 96% 4334813 831371160 1% /Volumes/com.apple.TimeMachine.localsnapshots/Backups.backupdb/MacBook Pro (2)/2026-10-20-003635/Data CGI-Executables$ df -g | awk 'NR==10 {print $2}' 1858 CGI-Executables$ df -g | awk 'NR==10 {print $3}' 1758 CGI-Executables$ df -g | awk 'NR==10 {print $4}' 79 CGI-Executables$ unused=$(df -g | awk 'NR==10 {print $4}') CGI-Executables$ echo $unused 79 CGI-Executables$