LinuxQuestions.org
Register a domain and help support LQ
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, 09:29 AM   #1
tosim
LQ Newbie
 
Registered: May 2012
Posts: 11

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, 10:07 AM   #2
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,197

Rep: Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642
Code:
rm -rf /var/backup
# maybe you need sudo
sudo rm -rf /var/backup
 
Old 06-09-2014, 10:13 AM   #3
tosim
LQ Newbie
 
Registered: May 2012
Posts: 11

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, 10:23 AM   #4
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,197

Rep: Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642
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 10:36 AM.
 
Old 06-09-2014, 10:33 AM   #5
tosim
LQ Newbie
 
Registered: May 2012
Posts: 11

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, 10:39 AM   #6
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,197

Rep: Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642
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, 10:43 AM   #7
tosim
LQ Newbie
 
Registered: May 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
After typing in password, I get a blank line: "tosim@HP5800 ~ $ "
 
Old 06-09-2014, 10:44 AM   #8
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,197

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

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, 10:59 AM   #10
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,197

Rep: Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642
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, 11:01 AM   #11
tosim
LQ Newbie
 
Registered: May 2012
Posts: 11

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

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:15 AM
safe deletion of files entz Linux - Security 7 10-01-2007 09:46 PM
retrieve files for deletion props666999 Slackware 5 06-14-2006 11:03 PM
Accidental Deletion of some /usr/lib files Huddlebum Linux - General 17 03-08-2004 03:05 PM
Deletion of massive number of files KendersPlace Linux - General 4 04-01-2003 02:27 PM


All times are GMT -5. The time now is 11:55 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration