October 2016
Beginner
406 pages
7h 50m
English
Programs and services can behave unexpectedly or stop working entirely when storage space runs tight, so it's important to know how much space is available on our system. This recipe introduces a handful of commands used to determine how large your files and directories are and how much storage is used and is available.
This recipe requires a working CentOS system. Administrative privileges may be needed depending on the permissions of the directories and files you want to inspect.
df command:
df -h /
ls command:
ls -sh file.txt
Read now
Unlock full access