The UNIX and Linux Forums  


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




Thread: Folder Size
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 06-29-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,784
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)