check space on server code example
Example 1: check ubuntu disk space
# shows total, available, and used.
df / -h
Example 2: linux check used space in folder
du -h --max-depth=1
# shows total, available, and used.
df / -h
du -h --max-depth=1