If you want to check how much disk space you have on your device using the Terminal running bash shell, you can do that using the df command.
Example:
bash-3.2$ df -h
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk3s3s1 228Gi 13Gi 102Gi 12% 381k 1.1G 0% /
devfs 200Ki 200Ki 0Bi 100% 693 0 100% /dev
/dev/disk3s6 228Gi 3.0Gi 102Gi 3% 3 1.1G 0% /System/Volumes/VM
/dev/disk3s4 228Gi 10Gi 102Gi 10% 687 1.1G 0% /System/Volumes/Preboot
/dev/disk3s2 228Gi 725Mi 102Gi 1% 308 1.1G 0% /System/Volumes/Update
/dev/disk2s2 500Mi 6.0Mi 482Mi 2% 7 4.9M 0% /System/Volumes/xarts
/dev/disk2s1 500Mi 6.1Mi 482Mi 2% 33 4.9M 0% /System/Volumes/iSCPreboot
/dev/disk2s3 500Mi 864Ki 482Mi 1% 40 4.9M 0% /System/Volumes/Hardware
/dev/disk3s1 228Gi 98Gi 102Gi 50% 805k 1.1G 0% /System/Volumes/Data
map auto_home 0Bi 0Bi 0Bi 100% 0 0 - /System/Volumes/Data/home
/dev/disk1s1 5.0Gi 1.5Gi 3.5Gi 31% 58 36M 0% /System/Volumes/Update/SFR/mnt1
/dev/disk3s3 228Gi 13Gi 102Gi 12% 382k 1.1G 0% /System/Volumes/Update/mnt1
If you want to know the disk space used by a particular system you can do that as follows,
Example:$ df -h devfs
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
devfs 200Ki 200Ki 0Bi 100% 693 0 100% /dev

-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to Bash,
- Bash Hello World! Script Tutorial
- How to run bash command in background
- How to create new user account in Windows bash
- How to Compare Strings in Bash
- Bash: Allow Command to Fail without exiting Script
- Fix bash: script.sh: Permission denied Error
- Bash getopts Command Example
- How to fix bash ping command not found error
- How to add NewLine Character in Bash Script String
- How to Echo Bash Command to a File
- Bash Command to Find String in a File
- How to open new Terminal using Bash Command
- Bash How to Save Output of a Command to a Variable
- Download a SSL Certificate from a URL in Terminal
- Bash Command to Check IP Address
- Know Bash shell version command
- Bash Command To Check If File Exists
- How to run a Command in Bash Script
- How to Compare two Files in Bash Shell
- How to check if a variable is set in Bash Script or Not
- Convert String from uppercase to lowercase in Bash
- How to see Created Accessed Modified and Changed dates of a file using bash terminal command
- Bash Command To Get Current Time
- Bash command to List Files
- Fix: bash: syntax error near unexpected token
More Posts:
- How to show line numbers in Nano on Mac - MacOS
- [fix] docker: Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory. - Docker
- Program 11: Calculate Percentage - 1000+ Python Programs - Python-Programs
- How to delete AWS SNS Subscription using CLI - AWS
- Split a String in Java with Examples - Java
- 70+ HTTP Error Codes CheatSheet - Html
- Elegant CSS Box Shadows Ideas - CSS
- Manually Throw an Exception in Python (raise:) - Python