Full section or not?

my / tmp section is full ... and its empty at the same time. Thus, the section is filled. Check the directory:

# du -sh / tmp
28K / tmp

What? It is empty ... And it is really empty ... only two empty directories are located in / tmp

Checking section information:

# df -h
Filesystem Size Used Avail Use% Mounted on
/ dev / cciss / c0d0p9 1012M 961M 0 100% / tmp

It is full! But why is + available! = Size?

Check inodes:

# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/ dev / cciss / c0d0p9 131616 17 131599 1% / tmp

So what is going on here?

+5
source share
2 answers

unix/linux , . , , /tmp, -, .

: @Vinko , lsof ,

lsof +D /tmp
+7

lsof, , .

$ lsof /usr/bin/python
COMMAND  PID  USER  FD   TYPE DEVICE    SIZE   NODE NAME
python  5020 hplip mem    REG    8,2 1158612 623041 /usr/bin/python2.5
python  6795 vinko txt    REG    8,2 1158612 623041 /usr/bin/python2.5
+7

All Articles