October 19, 2024

In your disk

df -h

In your directory

du -sch  ./*
du -h --max-depth 1 ./

The main difference is that the first command displays the total size of each item and the overall total size, while the second command does not show the total. Additionally, the second command uses the wildcard .*, which includes hidden files and directories, whereas the first command might not include these.