LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-17-2008, 10:02 PM   #1
sulekha
Member
 
Registered: Dec 2004
Location: India
Distribution: ubuntu 10.04 , centos 5.5 , Debian lenny, Freenas
Posts: 324

Rep: Reputation: 36
Question Linux directories do not shrink automatically


Hi all,

this is what i have read in a book

Because Linux directories do not shrink automatically, removing a file
from a directory does not shrink the directory, even though it frees
up space on the disk.remove unused space and make a directory smaller,
you must copy or move all the files to a new directory and remove the
original directory.

how valid is this claim ?
 
Old 10-17-2008, 10:13 PM   #2
AsusDave
Member
 
Registered: Jul 2008
Distribution: Debian, Ubuntu 10.04
Posts: 151

Rep: Reputation: 34
I think this depends on the file system in use. Some file systems cannot be shrunk and others can. Search wikipedia for "file systems" for an exhaustive listing :-)

Thanks
Dave
 
Old 10-17-2008, 11:20 PM   #3
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
That's just in relation to the inodes the directory is using which is going to be an insignificant portion of your total disk space and since directories by default take up about 4K you can put quite a few files into a directory before you even see a size change on the directory. For the majority of the users out there this is a non-issue.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically creating user home directories oggy Slackware 1 11-18-2007 05:10 AM
DVD Shrink For Linux? carlosinfl Linux - Software 16 09-12-2006 07:58 PM
DVD Shrink alternative for linux thomax Linux - Software 6 07-24-2005 09:46 AM
How to automatically date the input directories satimis Programming 5 11-05-2004 09:11 PM
dvd shrink for linux jpostma Linux - Software 2 07-22-2004 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration