Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Reset Directory Size in Linux
Name: amgquik Date: September 19, 2005 at 15:44:55 Pacific OS: Linux Red Hat Enterprise CPU/Ram: 2GB
Comment:
I emptied a directory and the size of it does not change, it still says the previous size. Is there a way to reset the size of a directory?
Name: 3Dave Date: September 20, 2005 at 01:48:47 Pacific
Reply:
What size does it say it is? How are you getting the size? "ls -l" or through a graphical interface? You can find the size of a directory with "du -hs /path/to/directory". The "h" means to display in human readable format (eg 4.5K, 1.6M, 12G etc) and the "s" supresses the output of every recursive directory so you just get the one total size for the lot.
0
Response Number 2
Name: 3Dave Date: September 20, 2005 at 01:49:57 Pacific
Reply:
Just thought....are there ant hidden files in there? You can list them with "ls -a", hidden files and directories start with a "."
0
Response Number 3
Name: Dlonra Date: September 20, 2005 at 05:40:42 Pacific
Reply:
directories are files which never shrink. A directory "file" contains the names of its files and other info. On my linux, minimum directory size is 4096. If the number of files in the directory gets large enough, the size expands in multiples of 4096.
If all the files in the directory are removed, ls -ld Dir will still give the same size.
Summary: 1) From what you described: That's how it's supposed to work in linux. If you want to look for something specific, use find off "/". Example: I want to find a text file "bob.txt": `find / -type f -nam...
Summary: i'm new to linux, just getting the hang of command lines and terminals and x servers.. i got some advice from someone on how to install a kernel and driver for NV, really aprpeciate that.. http://www....
Summary: It's an ASOUND EXPRESS el-cheapo using the Avance Logic ALS4000 chipset. It's detected fine in linux, the only real problem is the fact that the directory: "/dev/dsp" does not exist. I'm talking wit...