[CentOS] question about directory size in linux..
John R Pierce
pierce at hogranch.comWed Feb 22 20:42:36 UTC 2017
- Previous message: [CentOS] question about directory size in linux..
- Next message: [CentOS] question about directory size in linux..
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2/22/2017 12:27 PM, Anthony K wrote: > On my ext4 file system, I have a directory that has >2TB and the > directory entry itself only shows: > > $ ls -ld Stuff > drwxrwxr-x 146 akk akk 36864 Feb 21 21:18 Stuff/ > > $ du -bs Stuff > 2093651427987 Stuff ls -ld is showing the size of the actual directory, NOT the size of the files stored within and under it. du -s adds up the size on disk of all the stuff IN the directory. note also that size on disk even for a single file can be larger than the size of the file as files are allocated in blocks. -- john r pierce, recycling bits in santa cruz
- Previous message: [CentOS] question about directory size in linux..
- Next message: [CentOS] question about directory size in linux..
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list