- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Differents Directory size and files size.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2005 02:35 PM
тАО11-30-2005 02:35 PM
When I "cd /tmp" and do a "ls -l" it show me there is a directory call "Backup" when I look at the size, it is 96. Is this 96 mean 96kb?
Then when I go into the "/tmp/backup" and do a "ls -l", it has only 1 file and the size is 51200. It is 51kb.
why the "ls -l" at /tmp show "Backup" directory is 96? and When go in the actual filesize is 51200?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2005 03:16 PM
тАО11-30-2005 03:16 PM
Re: Differents Directory size and files size.
You are seeing the size of the directory entry when you look at /tmp/Backup. That size grows based on the number of files in the directory, not the size of the files in the directory.
I you run a loop and touch a bunch of files in /tmp/Backup the size of /tmp/Backup will grow, but the files will all be zero bytes.
HTH,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2005 03:29 PM
тАО11-30-2005 03:29 PM
Re: Differents Directory size and files size.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2005 02:05 AM
тАО12-05-2005 02:05 AM
Re: Differents Directory size and files size.
du -sk /tmp/backup
Please remember to assign points. Hope this helps.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2005 02:45 AM
тАО12-05-2005 02:45 AM
SolutionThe size of directory has nothing to do with the size of files in the directory. It is allthough linked to the no. of files in directory. As the no. of files grow in a directory, the directory size grows. But it is not other way round, the size of directory will never reduce and will remain at its max. value ever reached.
For ex. you create a directory and then created some 100 files in it of zero bytes, the directory size will increase and will remain same even if you delete all of those 100 files in that directory.
HTH,
Devender