Directory files are metadata not user data, plus directories do not "shrink" the way a datafile can shrink by changing the EOF. If you create a directory and add files to it, say it becomes 512 bytes. If you delete all the files from it, the directory will still be 512 bytes.
Obviously the original directory was expanded, then some files deleted. The new directory was created on the fly by tar. As files were added from the tarball, the filesystem grew the directory to match.
This User Gave Thanks to jim mcnamara For This Post:
I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms.
Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Hi,
what is the directory checksum error ?
# sed 's/^M$//' test4_bkp_19Jan13.tgz | tar -tvf -
tar: 0511-169 A directory checksum error on media; -265745505 not equal to 76225.
# mv test4_bkp_19Jan13.tgz test4.gz
# gunzip < /ebs2/test4.gz | tar -xvf -
tar: 0511-169 A directory checksum... (4 Replies)
To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
find . -type d -print 2>/dev/null|awk '!/\.$/ {for (i=1;i<NF;i++){d=length($i);if ( d < 5 && i != 1 )d=5;printf("%"d"s","|")}print "---"$NF}' FS='/'
Can someone explain how this works..??
How can i add directory size to be listed in the above command's output..?? (1 Reply)
Hi,
We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB?
I have seen this before we an Oracle temp file... (6 Replies)
Hello again;
I have a directories and subdirectories in my current directory and i wanna to find the directories( and subdirectories ) which are larger than what user enters as first parameter.
find . -type d -size +"$1"c -print > directories.dat
I used this command and i am not sure it is... (19 Replies)
hello
When i do a "ls -l" in a directory (Aix 5.3), i have the result :
>ls -l
total 65635864
-rw-r--r-- 1 lobi system 2559909888 Feb 20 15:06 cible5.7bdat
-rw-r--r-- 1 lobi system 1020098870 Feb 20 13:06 cible6.7bdat
-rw-r--r-- 1 lobi system 1544789511 Feb 20 11:06 cible9.7bdat
-rw-r--r--... (2 Replies)
hi, say i have the following directory structure a/b/c/d...
can i do df -kt /a/b/c/d and the output will gives me the total space of the directory space in d? or the output will just be the total space of the parent directory a.
hope its clear.. (2 Replies)