LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 06-09-2014, 08:29 AM   #1
tosim
Member
 
Registered: May 2012
Posts: 73

Rep: Reputation: Disabled
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.
 
Old 06-09-2014, 09:07 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Code:
rm -rf /var/backup
# maybe you need sudo
sudo rm -rf /var/backup
 
Old 06-09-2014, 09:13 AM   #3
tosim
Member
 
Registered: May 2012
Posts: 73

Original Poster
Rep: Reputation: Disabled
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?
 
Old 06-09-2014, 09:23 AM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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.

Last edited by schneidz; 06-09-2014 at 09:36 AM.
 
Old 06-09-2014, 09:33 AM   #5
tosim
Member
 
Registered: May 2012
Posts: 73

Original Poster
Rep: Reputation: Disabled
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:
 
Old 06-09-2014, 09:39 AM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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.
 
Old 06-09-2014, 09:43 AM   #7
tosim
Member
 
Registered: May 2012
Posts: 73

Original Poster
Rep: Reputation: Disabled
After typing in password, I get a blank line: "tosim@HP5800 ~ $ "
 
Old 06-09-2014, 09:44 AM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
for the shiggles, can we see the output of these:
Code:
cat /etc/hostname
cat /etc/hosts
hostname
 
Old 06-09-2014, 09:49 AM   #9
tosim
Member
 
Registered: May 2012
Posts: 73

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-09-2014, 09:59 AM   #10
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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 ?)
 
Old 06-09-2014, 10:01 AM   #11
tosim
Member
 
Registered: May 2012
Posts: 73

Original Poster
Rep: Reputation: Disabled
The system typed that.
 
Old 06-09-2014, 10:15 AM   #12
tosim
Member
 
Registered: May 2012
Posts: 73

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic deletion of old files when disk is full rdibley Linux - General 4 06-27-2013 12:15 AM
safe deletion of files entz Linux - Security 7 10-01-2007 08:46 PM
retrieve files for deletion props666999 Slackware 5 06-14-2006 10:03 PM
Accidental Deletion of some /usr/lib files Huddlebum Linux - General 17 03-08-2004 02:05 PM
Deletion of massive number of files KendersPlace Linux - General 4 04-01-2003 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 06:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration