About 193,000 results
Open links in new tab
  1. How to show directory sizes in tree format with correct values and ...

    Apr 11, 2025 · └── [100M] c └── [100M] d └── [100M] e └── [100M] f 600M used in 6 directories, 1 file (in case it's not clear from the main output, there's one file of 100M size in the …

  2. Print size of directory content with tree command in tree 1.5?

    I like tree it's a nice way to display my files and the size of folders/directories. But the -h option only shows the size of the directory, not the cumulative size of its contents. /media/ ├── [ …

  3. How to combine tree with the directory size? - Unix & Linux Stack …

    Jun 12, 2017 · The following command will provide a human readable information, on the size of all directories which are up-to depth of 2 levels of directories below the current directory: du - …

  4. combine the best of 'du' and 'tree' - Unix & Linux Stack Exchange

    Oct 25, 2015 · I'm wondering if we can combine the honesty of 'du' with the indented formatting of 'tree'. If I want a listing of the sizes of directories: du -hx -d2 ...displays two levels deep and all …

  5. Cumulative size disk usage with du and tree commands

    Mar 23, 2021 · I need to show my root / directory file cumulative size with deep level 1 Its looks easy but I can't run which deserve tree command doesn't show cumulative size tree --du -h -L …

  6. How to sort from smallest to biggest with `tree` command line tool?

    Dec 1, 2016 · Even if the tree tool doesn't support sorting by size directly, you can still do it using tree and sort. You can use the following command to list all the files and their paths in the …

  7. command line - Sorting files according to size recursively - Unix ...

    I need to find the largest files in a folder. How do I scan a folder recursively and sort the contents by size? I have tried using ls -R -S, but this lists the directories as well. I also tried ...

  8. tree command to only output file and directory count?

    Feb 5, 2023 · I want to keep only the last line of tree's output or the file+directory count report. Preferably, with the -a switch. An example output I desire: 585 directories, 37722 files Is this …

  9. Compare directory trees regarding file name (and size and date)

    Dec 1, 2014 · Compare directory trees regarding file name (and size and date) [duplicate] Ask Question Asked 11 years ago Modified 10 years, 11 months ago

  10. How to recursively find the amount stored in directory?

    I know you are able to see the byte size of a file when you do a long listing with ll or ls -l. But I want to know how much storage is in a directory including the files within that directory and the