Web Hosting Talk







View Full Version : folder full plz help me out


Amavisca
12-15-2004, 01:45 AM
Disk hda5 (/) 18 %
Disk hda1 (/boot) 27 %
Disk hda8 (/home) 3 %
Disk hda7 (/tmp) 100 %
Disk hda3 (/usr) 40 %
Disk hda2 (/var) 6 %

Everything look fine expect Disk hda7 (/tmp) 100 % , I contact the host and they said delete everyting in that tmp folder and everything will be fine, I did it thru ftp but not help any so they said use ssh to check. But since I am very newbie so I have no clue what command and how to del file in tmp folder to help this Disk hda7 (/tmp) 100 % decease.
So can somebody tell me how do i make it decrease please??

namelayer
12-15-2004, 01:48 AM
rm -f /tmp/*

Amavisca
12-15-2004, 02:01 AM
Thnx I try that but it said:
rm: invalid option --/
Try 'rm--help' for more information

YUPAPA
12-15-2004, 02:15 AM
I doubt you have privilege to remove things under /tmp if you are not in root :stickout:

Amavisca
12-15-2004, 02:16 AM
I have a root access, since I am in dedicate server

YUPAPA
12-15-2004, 02:19 AM
That command should work~ Maybe you typed in something wrong ~ :stickout:

Try to do this:
rm -f /tmp/*

If doesn't work, then:
cd /tmp; rm -f *

Amavisca
12-15-2004, 02:23 AM
Grr. now i follow what u said and the screen come up
-bash: /bin/rm: Argument list too long

I have no clue gr...

namelayer
12-15-2004, 02:28 AM
Do you have noexec on tmp? I would run through the dir and look for anything suspicious. How long have you had the server for it to get that full? Im thinking maybe a rooter got in and set something to not allow you to delete. But wait, your in root, you can do anything you want :D
Wierd!!
try
rm -Rf /tmp/*

Amavisca
12-15-2004, 02:38 AM
got it done. Thnx