LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I need the DELETE console command (https://www.linuxquestions.org/questions/linux-newbie-8/i-need-the-delete-console-command-434852/)

Sabinou 04-13-2006 12:39 PM

I need the DELETE console command
 
Hello hello.

I am booting knopping because my mandriva seems messed up, it cannot boot in graphical mode.

Among the error messages in the startup log, there is this, the first error message : partmon finds zero free byte on the / partition.

Other messsages are related to NFS failure and DHCP failure.

Perhaps that has a relation to the startup failure but I was runnig an update of the packages through the MCC and the update windoz froze : it kept the same progressbar level in ten minutes, so I forcibly closed it. Then later, I had to shutdown the computer forcibly (the NFS didnt shutdow for minutes).

Whatever reasons for that, at startup I have zero free bytes and startx would fail.

I thought of deleting some files in order to make room but... I DO NOT KNOW THE COMMAND LINE FOR FILE DELETION :mad: :mad:
Could someone tell me what it is please ? :cool:

pdeman2 04-13-2006 12:45 PM

use the command:
Code:

rm [file path/name]

JMJ_coder 04-13-2006 12:46 PM

Quote:

Originally Posted by Sabinou
I thought of deleting some files in order to make room but... I DO NOT KNOW THE COMMAND LINE FOR FILE DELETION

Hello,

The basic command to remove a file is:

Code:

rm [file]
and for a directory:

Code:

rmdir [directory]
To view all the options use:

Code:

man rm
man rmdir

I hope that this helps.

Sabinou 04-13-2006 12:56 PM

That bloody helps yeah thanks :)

Another question : do you know if the files such as syslog, in /var/log can be deleted ?

For instance, I nearly have one gigabyte (!) of files in /var/log
Can they all be deleted ?

As soon as I have the reply I'll reboot my Mandriva :)

towy71 04-13-2006 12:58 PM

You would be better off by booting from your Mandriva disk and using the system rescue mode by pressing F1 when you get to the start screen. the following page might help: http://twiki.mdklinuxfaq.org/index.p...CLI/DiskRescue

Sabinou 04-13-2006 01:03 PM

Thanks for the fast reply, and I read that documentation, alas the webpage you gave didn't give my useful hints, the bootloader works fine, and so do the partitions mounted. The problems lies with something else.

Is is advisable (or not !) to delete the contents of /var/log, after all, isn't that simple log files ?

Sabinou 04-13-2006 01:28 PM

Hmmm, considering that can be useful to other people, I'll ask that question in a new thread instead, I think... This way, if other guys need it, they'll find the information more easily...

That thread will be there : http://www.linuxquestions.org/questi...60#post2198560


All times are GMT -5. The time now is 11:39 PM.