LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Mint (https://www.linuxquestions.org/questions/linux-mint-84/)
-   -   Files Deletion (https://www.linuxquestions.org/questions/linux-mint-84/files-deletion-4175507488/)

tosim 06-09-2014 08:29 AM

Files Deletion
 
Will someone PLEASE give me the proper command to delete ALL the files in my folder: /var/backup ? This folder alone has over 17GB of files that are almost all corrupt,and causing a pop-up that computer is almost out of space.I have read, and tried many different commands, but none of them allow me to delete those files. I'd hate to have to format and re-install. Am running Mint13-MATE.
Many thanks in advance for any help.

schneidz 06-09-2014 09:07 AM

Code:

rm -rf /var/backup
# maybe you need sudo
sudo rm -rf /var/backup


tosim 06-09-2014 09:13 AM

Thanks so much for the reply. I did as you suggested and got this: "sudo: unable to resolve host HP5800". The HP5800 is my computer. Anymore suggestions, please?

schneidz 06-09-2014 09:23 AM

can you please copy-paste the command and output in code tags.

it doesnt make sense to me that sudo is trying to access the internet ?

edit: i looked it up; seems to be a ubuntuism.
Code:

cat /etc/hostname
cat /etc/hosts
hostname

supposedly its a bug in ubuntu:
http://ubuntuforums.org/showthread.php?t=773851

thats like changing the radio station and your car going in reverse.

tosim 06-09-2014 09:33 AM

Many thanks again. Here is the cut and paste:
tosim@HP5800 ~ $ sudo rm -rf /var/backup
sudo: unable to resolve host HP5800
[sudo] password for tosim:

schneidz 06-09-2014 09:39 AM

when you type in tosim's password does it do anything. i don't use ubuntu but i beleive to edit the hosts file requires sudo privledges. perhaps someone smarter than me will pass by with a solution.

tosim 06-09-2014 09:43 AM

After typing in password, I get a blank line: "tosim@HP5800 ~ $ "

schneidz 06-09-2014 09:44 AM

for the shiggles, can we see the output of these:
Code:

cat /etc/hostname
cat /etc/hosts
hostname


tosim 06-09-2014 09:49 AM

As requested:
cat /etc/hostname
HP5800
tosim@HP5800 ~ $ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 HP5800.ph.cox.net

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
tosim@HP5800 ~ $ hostname
HP5800

schneidz 06-09-2014 09:59 AM

since its a ubuntu bug i'm not sure what its complaining about but my educated guess is that it wants to see a line like 127.0.0.1 HP5800 in /etc/hosts.
x-or it wants /etc/hostname to be HP5800.ph.cox.net.

(127.0.1.1 just seems wrong -- did you type that in or did the system typo that ?)

tosim 06-09-2014 10:01 AM

The system typed that.

tosim 06-09-2014 10:15 AM

Sorry, but I have to go.
Thank you so much for your assistance. I guess I'll give it a few more days, and if I don't get rid of all those files, I'll format and reinstall. Again, many thanks.


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