hi,
when i want to check a folder size in i the terminal with du, it first list all the files sizes within the folder, then in the last the folder size itself, is there any other command to just display the folder size not the files sizes?
hi,
when i want to check a folder size in i the terminal with du, it first list all the files sizes within the folder, then in the last the folder size itself, is there any other command to just display the folder size not the files sizes?
You can use
du -s <folder-name>
du -sh <folder-name> will give you the same output in higher units
cd /folder
du -hs
du -hs /folder
du -sh /tmp/
Make sure you leave the trailing slash, otherwise it will give you all the contents.