Questions tagged [du]

du is the standard Unix/Linux command to measure disk usage. Use this tag for questions specifically about the use of the du program.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
653 views

Why do `ls` and `du` commands show a different size for the same file? [duplicate]

I am currently using Ubuntu 20.04. When I check a file's size using the du command, I get the following output: ubuntu@ip-172-31-49-39:/myxfs$ du -h newquota 4.0K newquota With the ls -la command, ...
Alakananda S's user avatar
7 votes
2 answers
1k views

Prevent du command report inflated info about /snap directories

I have an Ubuntu 20.04 server installed on a single 8GB drive. The default installation has some "snap"s installed also. So, there are some "squashfs" file systems also reported by the df command: # ...
FedKad's user avatar
  • 10.5k
1 vote
1 answer
469 views

How to find out the size of recently downloaded files?

I have installed a bunch of development packages from the Ubuntu repositories today, and some of them seem to have had massive amounts of dependencies. Out of curiosity — and to notify those who read ...
Levente's user avatar
  • 3,961