Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-19-2003, 02:22 AM   #1
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
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.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:55 PM.

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