Find the answer to your Linux question:
Results 1 to 2 of 2
I want to list the disk usage of a directory without recursion when I use df or du over a directory it will list everything recursively, so the list is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2012
    Posts
    87

    how to list the disk usage of a directory without recursion


    I want to list the disk usage of a directory without recursion
    when I use df or du over a directory
    it will list everything recursively, so the list is very long
    I just want to list the first level of the subdirectory and files

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,769
    Are you looking for
    Code:
    du -ksh dirname
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •