Link to home
Start Free TrialLog in
Avatar of Keogh_b
Keogh_b

asked on

directory size info and reconfiguration on a linux file system

Hi

I am new to Linux and have been trying to install and configure it on a machine.  I currently have the following filesystem on Linux 2.4.21-37EL OS.  

df -k /tmp

Filesystem    1k-Blocks      Used           Available     Use%  Mounted On
/dev/hda2     37341064     2006512     33437680     6%     /

I need to ensure there is 400MB available on the tmp directory

when I perform a ls -la on / I get

drwxrwxrwx     13     root     root     4096     Feb     9     11:11      tmp

what does the 4096 relate to?
are there any limitations on the amount of space that tmp can use?  if so how do i determine what this is and how can i reconfigure it?

Thanks in advance
Avatar of ravenpl
ravenpl
Flag of Poland image

> what does the 4096 relate to?
to the size of the directory entry itself. You may think of directory as of a special file, which has directory entries inside.

> are there any limitations on the amount of space that tmp can use?  if so how do i determine what this is and how can i reconfigure it?
No. To limit that, You would need to put the /tmp on separate partition.
Avatar of Keogh_b
Keogh_b

ASKER

So the tmp or any other file on the filesystem can grow as large as the available space?

So why is there a directory entry size, what purpose does it server if the directory can grow to the size of the available space?
ASKER CERTIFIED SOLUTION
Avatar of ravenpl
ravenpl
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial