![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to read the data from an excel sheet and use those data as variable in the unix c | Anne Grace | UNIX for Advanced & Expert Users | 1 | 03-03-2008 04:21 AM |
| how to verify that copied data to remote system is identical with local data. | ynilesh | Shell Programming and Scripting | 3 | 01-31-2008 05:55 AM |
| Howto capture data from rs232port andpull data into oracle database-9i automatically | boss | UNIX for Dummies Questions & Answers | 1 | 09-22-2007 11:35 PM |
| Using loop reading a file,retrieving data from data base. | Sonu4lov | Shell Programming and Scripting | 1 | 01-19-2007 12:38 AM |
| Convert Binary data to ascii data | krishna | UNIX for Advanced & Expert Users | 4 | 11-05-2004 01:12 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Where are the data ?
Hello,
I have a strange thing, when I want to see where my data are on a partition, and to check too if the partition is filling up... So, first I check with : Code:
df -k /my/partition Code:
Filesystem kbytes used avail capacity Mounted on /dev/md/dsk/d8 14115659 7272935 6701568 53% /logs Code:
df -h So, then, I decide to see wich directory are taking a lot of space, and I do this with : Code:
du -sk /logs Code:
5463367 /logs And when I want to see the size of sub-directory on this partition with : Code:
du -sk /logs/* Code:
367713 /logs/apache 584 /logs/backup 1243 /logs/firewall 280 /logs/ftp 12 /logs/interface 1 /logs/logcheck 5405 /logs/logrotation 8 /logs/lost+found 1 /logs/mount_as 2 /logs/oracle 405 /logs/solaris 1719 /logs/sysload 1 /logs/tmp 5085992 /logs/websphere Code:
ls -al /logs Code:
drwx------ 6 root other 512 Nov 21 08:00 apache/ drwx------ 3 root other 512 Mar 2 2006 backup/ drwx------ 4 root other 512 Oct 21 2003 firewall/ drwx------ 3 root other 512 Oct 21 2003 ftp/ drwx------ 4 root other 512 Oct 21 2003 interface/ drwx------ 2 root other 512 Oct 21 2003 logcheck/ drwx------ 2 root other 7680 Nov 29 08:30 logrotation/ drwx------ 2 root root 8192 Sep 23 2001 lost+found/ -rw------- 1 root other 34 Dec 5 2003 mount_as drwx------ 3 root other 512 Oct 21 2003 oracle/ drwx------ 6 root other 512 Mar 2 2006 solaris/ drwx------ 6 root other 512 Mar 2 2006 sysload/ drwx------ 2 root other 512 Mar 15 2005 tmp/ drwx------ 8 root other 512 Oct 11 2006 websphere/ We are using disksuite if I'm right, with metadevices if it can help !! |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Suppose that a program was writing to a file called /logs/tmp/uselessfile. Then someone does an "rm /logs/tmp/uselessfile". Now you have a file with no path to it. It won't actually be deleted until the program closes it. My guess is that something like this has happened. Sometimes a program will create a temporary file and then immediately unlink it to create this situation intentionally. The file is very secure since no other process can open it without special help from the original process. And the file is guaranteed to be deleted when the program exits.
|
|
#3
|
|||
|
|||
|
someone tell me about also a certain amount ( 5 or 10% ) of a partition are reserved for the root user ?
do you thingk that the place reserved for root user can be seen with the command Code:
df -k If you were true, it seems that I have a lot of wasted space !! Damned !! |
|
#4
|
||||
|
||||
|
No, it's not the reserved space. If it were, all of your filesytems will have the same effect. If you reboot the box, the process holding the space will die and the space will be freed. This is one way to see if I'm right.
|
|
#5
|
|||
|
|||
|
As it is a production system, I don't think my boos will appreciate to reboot the system ! But we have a system, that has been reboot not too long ago, so I'll see if we have also there some wasted space !!
Thanks anyway for the advice ! |
|||
| Google The UNIX and Linux Forums |