LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2012, 07:54 AM   #1
mscuarto
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
Thumbs down how to erase the back up folder


i just edit/erase the boot configuration at etc/fstab because it annoyed me of always presssing S to start. i made a backup by saving as fstab1 as it automatically saved. incidentally my editing was successful and im so glad, but want to erase my backuo/saved copy as fstab1. how do i do that. thanks
 
Old 02-12-2012, 08:38 AM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
I am going to assume that simply want to know how to remove a folder from the command line (if I misunderstood, feel free to clarify).

The command to remove a folder is:

Quote:
rm -r /path/to/folder
(or 'rm -rf /path/to/folder' if you don't want to be prompted about write-protected files)

WARNING: be careful with that command.
 
Old 02-12-2012, 06:56 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Don't do that; fstab is a file, so to remove the file copy
Code:
rm /etc/fstab1
 
Old 02-13-2012, 02:12 AM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Quote:
but want to erase my backuo/saved copy as fstab1. how do i do that.
Code:
# rm -rf /etc/fstab1
 
Old 02-13-2012, 02:27 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Like I said, fstab1 is FILE not a DIR. Do not use -r (recursive) and you shouldn't normally need -f (force) either....
 
  


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
.evolution folder moved, corrected but wanting emails back Wiggles Linux - Newbie 5 01-08-2011 03:32 PM
how to compress ~130GB folder and erase original files at the same time arshadul Linux - Newbie 3 04-20-2009 07:48 PM
back up users home folder? paperplane Linux - Newbie 5 12-27-2007 04:45 PM
suggestion for app to back up a folder nephish Linux - Software 2 09-25-2005 08:16 PM
how can i get httpd folder back? frank_yin Linux - Enterprise 4 01-06-2005 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration