![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| size of a folder ? | aneuryzma | UNIX for Dummies Questions & Answers | 2 | 06-01-2009 04:31 PM |
| how to find folder size with created date | muddasani | UNIX for Dummies Questions & Answers | 3 | 04-03-2009 07:58 AM |
| Need help in finding Folder Size | TonySolarisAdmi | UNIX for Dummies Questions & Answers | 3 | 09-11-2008 08:27 PM |
| Limit Folder Size | tisdmin | UNIX for Dummies Questions & Answers | 2 | 01-17-2007 11:00 PM |
| Scripting to find the size of the folder | victorvvk | Shell Programming and Scripting | 2 | 03-17-2005 06:14 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Folder Size
Hi All,
I am trying to clear a share drive in unix to free up some space. I noticed that when I use " ls -l " command to list the contents of folders it displays the size of a folder. there are some empty folders, and yet their size is quite large. For example an empty folder is of size 333824, and there are many others like this folder which are empty yet their size is quite large. Can some one suggest why? I checked hidden items too but there is nothing in it. thanks, jeet |
|
||||
|
In unix you mean directory, not folder.
Directories are files, and use space on disk. As the number of file entries in a directory grows, the directory file grows, too. If the directory is actually empty with no subdirectories you can resize it like this - if you own it or are root. Code:
ls -l -d ./directoryname rmdir ./directoryname mkdir ./directoryname # use chmod to reset permissions as they were before (use the ls -l -d result above) |
|
||||
|
@ vidyadhar85
I checked the hidden items to and all it shows is " . " and " .. " @ Jim I am new to unix so forgive me if I ask silly questions. But as I understand you are suggesting that I recreate the folders. Am I right? Thanks, Jeet |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| delete files with specific, folder, size |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|