The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-29-2009
jeetshukla jeetshukla is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 2
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
  #2 (permalink)  
Old 06-29-2009
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,382
are you sure they are empty??
check wether there is any hidden files..
  #3 (permalink)  
Old 06-29-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,643
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)
  #4 (permalink)  
Old 07-01-2009
jeetshukla jeetshukla is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 2
@ 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
Reply

Bookmarks

Tags
delete files with specific, folder, size

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0