Linux Command to check space disk and folder

To check Linux disk space use :

df -ha

To check Linux folder space use :

du -sh * 

will not traverse any mount points it encounters. But if it is told to start at a mount point then it will do as requested.

du -shx *

for also hidden folder

du -sh .[^.]*

for hidden and not hidden

du -hs $(ls -A)

with threshold

du -sh * –threshold=10M