LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-06-2002, 08:50 PM   #1
flyboy320
LQ Newbie
 
Registered: Jan 2002
Posts: 15

Rep: Reputation: 0
does the rm command permanetly remove a file?


I know when running xwindows, and you delete a file, it goes to the trash, and then you have to empty the trash to permanently delete the file. What happens when you are not under xwindows, but in a terminal window and type "rm <filename>"? Does this permanently remove the file, or does it store it somewhere else first like in a trash directory?
 
Old 03-06-2002, 09:02 PM   #2
pperon
Member
 
Registered: Jan 2002
Location: Cleveland
Distribution: Gentoo and umm... Gentoo
Posts: 64

Rep: Reputation: 15
Yes, as far as I know 'rm' *will* permanently remove a file.

-p
 
Old 03-06-2002, 09:16 PM   #3
therion12
Member
 
Registered: Dec 2001
Location: chicago, IL
Distribution: Gentoo 1.4_rc1
Posts: 913

Rep: Reputation: 30
Yep, rm just deletes it. Windows doesn't actually delete a file when you press delete. Actually the file just gets moved into another directory (trash) so you can empty it later on.

But if you use KDE or GNOME and the alike, you will notice it will be like windows where when you delete crap it will go to the trash.
 
Old 03-06-2002, 11:22 PM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
If you perform rm on a soft link (symlink) it will remove the link but the file it points to stays intact
 
Old 03-07-2002, 01:01 AM   #5
kausik
LQ Newbie
 
Registered: Feb 2002
Location: Baruipur, India
Distribution: Red Hat 9.0
Posts: 29

Rep: Reputation: 15
Do 'rm' undelete permanently?

Please check this site for your answer.

http://recover.sourceforge.net/linux/

This site describes u a better solution -

http://www.linux-mag.com/2000-08/desktop_01.html




Kausik
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
c++ file processing -- how to remove a record from a file sharonyiisl Programming 4 09-26-2004 04:54 AM
Terminal command for GUI command "Remove to trash" GunSkit Linux - General 3 06-29-2004 02:50 PM
remove folder from command line demmylls Linux - General 3 02-15-2004 10:52 AM
Command to remove a directory... xconspirisist Linux - Software 2 11-28-2003 02:06 PM
what is the command to remove the directory Harish_f Linux - General 6 06-19-2002 04:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:30 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
Open Source Consulting | Domain Registration