General :: Ubuntu - File Was Deleted And Then Reappeared When Folder Was Zipped
May 11, 2010
I am using Backtrack 4 Final, which is a Linux distro that is Ubuntu based. I had a directory that contained around 5 files. I deleted one of the files, which sent it to the trash. I then zipped the directory up (now containing 4 files), using this command:
zip -r directory.zip directory/
When I then unzipped directory.zip, the file I deleted was in there again. I couldn't believe this, so I zipped up the directory again, and the file reappeared again but this time could not be opened because the operating system said it didn't exist or something. I don't remember the exact error, and I cannot make this happen again. why a file that was deleted from a directory would reappear in that directory after it was zipped up?
View 1 Replies
ADVERTISEMENT
Feb 19, 2011
I have just accidentally deleted some files and a folder.Is there anyway I can recover them.
View 1 Replies
View Related
May 6, 2011
So I have a script that simply unzips a file with a line:
unzip /path/to/file.zip
which unzips and puts the unzipped directory in the same directory as my script. The issue is, I want the unzipped directory to be in the same directory as the original zipped file.
I googled and found the -d flag which would let me specify what directory to put it in but the script asks the user to define the directory so I don't see how I could use that (because the user specifies the path all the way to the zipped file, not just the directory where the zipped file is)
View 2 Replies
View Related
Oct 30, 2010
I want to know if there is anyway I can extract the first few contents of a zipped file and then the next fixed and so on? For example, suppose I have a zipped file containing 1000000 natural numbers and I want to extract the first thousand numbers and then the next thousand numbers (1001-2000) and so on till I reach the end. Is this possible?
View 3 Replies
View Related
Mar 5, 2010
I accidentally deleted a php file under my public_html folder. Is there a way I can get it back?
I typed: sudo rm contacts.php
View 2 Replies
View Related
Jun 25, 2011
By naming one of my folders wrong I thought I don't need it anymore and pressed delete button while holding shift. Is there any way I could get that folder back? (I'm actually looking for the file inside that folder - .conky config file to be more precise) I've tried scalpel and extundelete, but none of them worked.
View 2 Replies
View Related
Jan 10, 2011
I had been uploading pictures from camera to download fold. Had a lot in there. Thought right click delete would just delete the pictures. Deleted folder too.
How can I get the download folder back?
View 2 Replies
View Related
Jun 22, 2010
I lost my folder name "....hemanth" while moving the folder "....hemanth" to "Documents" using mv command in the terminal. As there is already a folder named Documents in that destination folder I lost folder. How to retrieve the folder as that folder is very important for me.
View 2 Replies
View Related
Feb 4, 2011
Somebody deleted a folder from /opt, now how I to know who did it? should I login to every user from root and check the history? or there is better and easy solution?
View 11 Replies
View Related
Apr 2, 2010
I'm running Mac OS X 10.5.8. I was recently uninstalling mysql5 from /opt/local/bin.I typed:rm -rf /opt/local/bin mysql*instead ofrm -rf /opt/local/bin/mysql*This deleted my entire /opt/local/bin directory which puts me in a bit of a bind.Is there any way to recover those files? If not, I have a friend that is using a similar set of programs, would it be possible to use the contents of his folderIf I end up needing to reinstall everything in this folder, what is the best way to go about doing this?
View 2 Replies
View Related
Sep 21, 2011
I want to remove Virtual Machine and I have deleted VM folder from hd. It's still shown in the VirtualBox GUI but the settings are grayed out.
View 2 Replies
View Related
Jun 11, 2010
Is it possible to copy zipped (my.zip) files from Windows systems to Linux systems and unzip them without any corruption.
I know the command unzip is available, but I want to know if this copying from WIndows to Linux could lead to file corruption.
View 7 Replies
View Related
Jan 10, 2011
I used the ext3 format when I formatted my partition prior to installing Ubuntu10.10. I had accidentally deleted a file and began the process to get it back. It wasn't critical but helpful to recover the file. To make a long story short I ran into to some unexpected road blocks. I tried to use PhotoRec to get the job done but with no success.
I'm just looking down the road in the event I might have to recover something important.If it would be better going back to the Fat32 file system I would rather do it sooner than later. Just as a side note I am dual booting between linux and windows.
View 6 Replies
View Related
Mar 19, 2011
None of my daemon scripts work now, and the startup process displayed errors. Should I reinstall the OS and start from scratch, or is there a way to recover these files? Is there a way to rebuild the files I deleted?
View 2 Replies
View Related
Jun 19, 2011
I'm running debian 2.6.32-5-amd64 and have spent an interesting day trying to get nvidia-glx running...What appears to be happening, is that installing nvidia-glx uninstalls X.I've tried various installation methods (Synaptic, apt-get, module-assistant) and the final result seems to always be /usr/bin/X not found.Re-installing X blows away nvidia-glx.The symptoms look a lot like this post: viewtopic.php?f=7&t=45188Is it possible that this problem has returned?
View 10 Replies
View Related
Jul 9, 2010
How to recover a removed file under linux
Is there any free undelete software for the Mac?
I have accidentally deleted a very-very important file in my Linux (Ubuntu) machine using the command rm.
Is there any way to recover it?
View 6 Replies
View Related
Dec 22, 2010
The man page for rm says Quote:Note that if you use rm to remove a file, it is usually possible to recover the contents of that file. Do you know of a way to recover a file deleted with rm?
View 2 Replies
View Related
Jan 15, 2011
Two month ago I accidentally deleted my home folder (yes, very stupid idea but it wasn't on purpose).
I managed to recover the home folder from /home/.Trash-0/tobias by copying it back to where it belongs and changing the file ownership from "root" to my user (tobias).
After this recovery I tried to delete /home/.Trash-0/tobias but it wouldn't work. Whenever I tried, a new folder appeared in /home/.Trash-0/ (root home) named tobias.2, tobias.2.2 and so on. (see first screenshot). This means I had two copies of my home folder on my hard disk (2 x 156.1 GB at that time).
At that time I didn't care since I had enough disk space left (33.8 GB, see second screenshot) and thought Ubuntu would take care of this some time by removing the files in /home/.Trash-0/.
Fast forward to today, I get warnings of low disk space. My home folder today is around 160 GB but together with the deleted one in /.Trash-0/ I only have 1.3 GB disk space left in my home folder.
Any ideas how to delete the unused second home folder copy? Or is there some other way to free the disk space occupied by .Trash-0/ ?
(Ubuntu 10.04. LTS on vaio VPCEB1S1E btw)
View 1 Replies
View Related
Jun 26, 2011
I accidentally cut and paste two folders into my flash disk. then i deleted the folders from my flash. How can I recover the folders? They are not in my PC trash.
View 6 Replies
View Related
Jul 11, 2011
I deleted my music folder suddenlyIt was empty so I am not worry about data losingbut after that recreate a folder with same name its default icon wont come backwhat should I do?I am aware that I can set icon manually but I am looking for a method that ubuntu recognize that by itself.
View 8 Replies
View Related
Dec 2, 2009
How can I retrieve the file in LINUX which I have deleted using 'rm' command .???
View 1 Replies
View Related
Feb 16, 2011
Say I have a file that's downloading (from a source that's hard to re-download from), but accidentally deleted from the filesystem namespace (/tmp/blah), and I'd like to recover this file. Normally I could just cp /proc/$PID/fd/$FD /tmp/blah, but in this case that would only get me a partial snapshot, since the file is still downloading. Furthermore, once the download completes, the downloading process (e.g. Chrome) will close the FD. Any way to recover by inode/create a hard link? Any other solutions? If it makes any difference, I'm mainly concerned with ext4.
View 3 Replies
View Related
Mar 26, 2010
i was working on a file and accidentally deleted it on , is it possible to recover it?
View 6 Replies
View Related
Apr 11, 2010
I accidently deleted my .bashrc file. I am a Debian user.Wat should i do??
View 7 Replies
View Related
May 25, 2010
I'm new to Ubuntu (at least on server distributions). I used debian versions for a long time and thought, to try ubuntu LTS 10.0.4, because of the long time support cycle. I had problems, to install this distribution on a x86 platform (used with ASUS P4B533-v), because of kernel panic after installation. So I used a trick to get it running. I installed Ubuntu LTS 8.04 and compiled a kernel 2.6.34 and made a distupgrade. All went o.k. and is now running as a productive system.
My question now belongs to the used pid folder /var/run. I'm using some self compiled programs and had to create a separatly folder (e.g. /var/run/stunnel). My problem is, after rebooting the system, the folder is deleted automatically! Never saw this issue on other distributions. Is there any reason why? Of course, I can write a section in my init script, searching for existing folder and if not, creating it ...
View 2 Replies
View Related
Nov 22, 2010
I made one of those silly mistakes and stupidly deleted my 'Downloads' folder. how one could restore it?
View 3 Replies
View Related
May 13, 2011
$ cat important_file > /dev/null &
[1] 9711
$ rm important_file
[code]....
View 2 Replies
View Related
Jul 6, 2010
I created a pendrive USB Fedora OS, worked fine. Installed a few bits and pieces, but when I used it again most of the files have disappeared (corrupt, deleted?). This happened before, just after I put a load of updates on. I am certain it cannot be rescued, but how can I prevent this (apart from backing up)?
View 2 Replies
View Related
Oct 7, 2010
I deleted root from passwd and shadow file.Can I crate a new root user?
View 1 Replies
View Related
Feb 10, 2010
How can I check if Ubuntu deletes all the content in /tmp folder at each shutdown
(without trial and error)?
How can I tell Ubuntu to delete it?
What about the deletion of other tracks like swapfile at shutdown?
View 6 Replies
View Related