LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 03-19-2003, 02:22 AM   #1
chandan
Member
 
Registered: Feb 2003
Location: Bangalore, India
Distribution: Fedora Core 2
Posts: 60

Rep: Reputation: 15
Unhappy reversed cp command


i had two files of same name in two different directories
i wanted to copy the updated file into the other directory overwriting the old file
but unfortunately i reversed the order of the files in the copy command
i have overwritten the updated file
is there any way i could get back this file
 
Old 03-19-2003, 07:02 AM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
Unless you had a backup somewhere, no.

If it was a text file, some editors will make a backup in the same directory as the original. Usually it adds a tilde ~ to the end of the name. file.txt --> file.txt~

Otherwise, once you overwrite a file, it's gone. The new file writes to the same blocks on the hard-drive as the old one, so there isn't any recovery.
 
  


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
Dialog Buttons Reversed. jinksys Fedora 1 01-24-2005 12:23 AM
kernel patch error - reversed? pfunk Linux - Software 4 10-14-2004 04:53 AM
Some keyboard letters reversed tck Linux - Newbie 2 10-12-2004 03:21 PM
SSH tunnel reversed for VNC...Possible? silence Linux - Networking 1 07-22-2004 09:42 AM
Audio L&R reversed edverb Linux - Software 1 02-28-2003 12:24 AM


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

Main Menu
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