Comments on: 10 Useful du (Disk Usage) Commands to Find Disk Usage of Files and Directories https://www.tecmint.com/check-linux-disk-usage-of-files-and-directories/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Mon, 14 Aug 2023 04:58:08 +0000 hourly 1 By: osnat https://www.tecmint.com/check-linux-disk-usage-of-files-and-directories/comment-page-1/#comment-1731777 Tue, 01 Mar 2022 11:39:56 +0000 http://www.tecmint.com/?p=2014#comment-1731777 How can I check disk usage for every month?

]]>
By: Hans HM https://www.tecmint.com/check-linux-disk-usage-of-files-and-directories/comment-page-1/#comment-1615508 Thu, 21 Oct 2021 12:16:08 +0000 http://www.tecmint.com/?p=2014#comment-1615508 In reply to Stranger.

There can be two reasons (that I can think of):

One is Rounding:

The sizes are quite quickly rounded up (a few k over the mark is enough).

10M File_A – might be 9.2M
14M Dir_A – might be 13.2M
23M total – because that adds up to 22.4, which again is rounded up.

But I think that can’t explain it fully.

It might be because you simplified your example and there are more of these files/directories of a few k which all get rounded up to 1M.

– The functioning of *
Another way is that there are files/directories starting with . in your main directory.
These are not shown in the list when you use *, but they are calculated in the total of the main directory.

]]>
By: K. de Jong https://www.tecmint.com/check-linux-disk-usage-of-files-and-directories/comment-page-1/#comment-1211287 Fri, 26 Jul 2019 19:49:04 +0000 http://www.tecmint.com/?p=2014#comment-1211287 A kilobyte is 1000 bytes, always has (referring to the -k switch part). A kilo is always a unit of 1000 (e.g. a kilometer is also 1000 meters). A kibibyte is 1024 bytes. I know that Americans aren’t used to the metric system, but please, get it right when you do use it. I see these mistakes happen in blogs like these all the time…

]]>
By: Ravi Saive https://www.tecmint.com/check-linux-disk-usage-of-files-and-directories/comment-page-1/#comment-1114108 Mon, 18 Mar 2019 06:05:49 +0000 http://www.tecmint.com/?p=2014#comment-1114108 In reply to jilson.

@Jilson,

Check this article to Find Out Top Directories and Files Disk Space in Linux.

]]>
By: jilson https://www.tecmint.com/check-linux-disk-usage-of-files-and-directories/comment-page-1/#comment-1113020 Fri, 15 Mar 2019 10:33:10 +0000 http://www.tecmint.com/?p=2014#comment-1113020 How can i find the 1st five largest in the file /etc.

]]>