[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to print sizes of both files and directories in a directory?
From: |
Assaf Gordon |
Subject: |
Re: How to print sizes of both files and directories in a directory? |
Date: |
Mon, 1 Jul 2019 02:38:07 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 |
Hello,
On 2019-07-01 12:10 a.m., Peng Yu wrote:
`du -h --max-depth=1` only print directory sizes. Is there a way to
print the sizes of both directories and files in a directory?
du -h --max-depth=1 --all
as mentioned in the --help screen:
-d, --max-depth=N print the total for a directory (or file, with
--all) only if it is N or fewer levels below
the command line argument;
regards,
- assaf