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.
Space Control
Name: Jonathan Date: December 12, 2003 at 04:38:55 Pacific OS: Linux Red Hat 2.1 AS CPU/Ram: Intel 256
Comment:
Hello,
I'd like to know, how I can make a shell that control a use of space in a directory.
ie. I have a database that use a determined directory to store files, but I want when 60% of directory is used, want delete all files in a directory
Name: 3Dave Date: December 12, 2003 at 08:42:44 Pacific
Reply:
It's not really the directory that becomes full, more like the whole drive or partition that it resides on (unless of course you have a mountpoint in that directory).
You could create a simple script that checks disk usage and then deletes files depending on whether a specific size has been reached. Try a "du -hs /path/to/folder" to see if that will help.
Summary: Hi There, I am developing a driver for a communication card in linux. The working of the driver is as follows: The data has to be transferred from user space memory to some memory on a particular PCI ...
Summary: This is probably way too simple, but is there an easy way to see how much space is available on a partition in Linux? I found a hard way "du -c -a -h" from "/" and then I just happened to know that th...
Summary: I am confused a littel about how Linux handles directories. For example If I setup a Windows 2000 server, then I can control what part of the drive the user has access to. However, where does the us...