Questions tagged [deleted-files]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
73 views

Problems with apt in Raspbian where /var content has been removed or corrupt

Apparently on a production server there has been some problem and someone has deleted the contents of the /var folder. This has caused several errors that I have been solving with various services ...
-2
votes
1answer
36 views

Linux restore deleted images (png/gif/jpg/jpeg)

I inadvertently deleted images from my linux filesystem today with classic command rm -f. All deleted images was in one single folder. It was no all whole images in this folder, it was only very ...
0
votes
2answers
29 views

Delete one type of file from specific directory however not from subdirectory

I am currently working on HP-UX and have a cron job which runs every morning which deletes file older than certain number of days based on retention policy. Recently I added a sub directory at the ...
1
vote
1answer
45 views

Recovery software for corrupted files when running a linux system?

I am looking for options regarding recovering deleted files (don't recall if corrupted applied). Filesystem for the corrupted files are VFAT-formatted on a USB, though I run a Linux system (but can ...
1
vote
1answer
161 views

Use rsync to mirror source for website deployment, but not delete selected files in destination

I have been working on this for several days and no matter what I do I can't get it to work. I've read practically every Q&A on StackExchange network about rsync but still not found the answer. ...
0
votes
2answers
105 views

What does it mean to overwrite a file but keep it?

The wipe tool has the option -k Keep files, i.e. do not remove() them after overwriting. What does that mean not to remove a file that was ... well... wiped?
5
votes
2answers
197 views

On Mac OSX, how can I open a deleted file which is still open by a process?

b2-osx108v8-01:~ bamboo$ lsof -p 264 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME <lines removed> java 264 bamboo 20w REG 1,2 240906 ...
3
votes
1answer
629 views

What happens when the current directory is deleted?

In the first terminal A, I create a directory, enter the directory, and create a file: $ mkdir test $ cd test $ touch file1.txt $ ls file1.txt Then in another terminal B, I delete the directory: $ ...
1
vote
1answer
84 views

Is there a way to completely delete a previously deleted file without formatting the whole drive?

I am working on a server with others and I want to completely delete files which were previously deleted using 'rm'. I cannot format the server disk as others share it with me. Is it effective to ...
0
votes
1answer
112 views

rm -rf destroyed directories of the files set to be deleted (multiple arguments)

In a testing environment I executed: rm -rf /var/www/html/${domain} /etc/nginx/sites-available/${domain} /etc/nginx/sites-enabled/${domain} The result was that html, sites-available and sites-...
2
votes
0answers
1k views

How to undelete a file on a btrfs filesystem

Which software and commands are required, to undelete a file on a btrfs filesystem?
1
vote
1answer
291 views

Removing speed using `srm` and the Gutmann method is too low

I need to delete some files using Gutmann method. Deleting files using srm -rvz took for me more than 16 hours and after that I canceled it. After that I do a test: I tried to delete a 5GB file ...
2
votes
1answer
79 views

Accidentally trashed large file

I accidentally moved an entire directory of ~100GB to trash. I was trying to place it in bookmarks but dragged it into trash. It's there in the trash. But when i try to restore I run out of space ...
1
vote
0answers
295 views

Recovering files deleted by rsync

I entered the command rsync -rltpHS --delete-excluded rsync://ftp.gnu.org/gnu/ /your/dir/ with /your/dir/ as my home directory, which resulted in all of my files being deleted and replaced with the ...
-4
votes
1answer
7k views

How to Check the location of a deleted file in CentOS Linux distribution? [duplicate]

I have deleted a file and now I want it on the same place from where I have deleted? How I can check that deleted file in my system from CLI? I tried find command but end up nothing.
2
votes
1answer
780 views

Deleted files still in use: memfd:pulseaudio(pulsaudi), memfd:xshmfence(Xorg), /tmp/ib…(mysqld)

So I'm running a freshly installed Debian 9.1 with KDE and some tool showed me that these files have been deleted but are still in use: memfd:pulseaudio(pulsaudi) memfd:xshmfence(Xorg) /tmp/ibAbCdEf(...
1
vote
2answers
604 views

Delete files in Linux unrecoverable

What's the ideal command or software to erase files in Linux so they are unrecoverable? A kernel command or any other command or software that would delete the files and make them unrecoverable
0
votes
1answer
259 views

What constitutes a Scrub “Pass”?

The Scrub utility on Linux can accept different methods of scrubbing. These allow for different types and orders of 'passes'. For example, the 4-pass DoD 5220.22-M section 8-306 procedure is a 4-pass ...
1
vote
3answers
4k views

Get list of files deleted by rm -rf

I hadn't sleep much. A bad script was creating a folder under somewhere/~ and I tried to removed it with rm -rf ~. I Ctrl C quickly and I don't think I've lost much files. I get they are lost for ...
22
votes
2answers
2k views

macOS rm command '-W' option - undelete

I was looking at the man page for the rm command on my MacBook and I noticed the the following: -W Attempt to undelete the named files. Currently, this option can only be used to recover ...
1
vote
1answer
114 views

How to see the contents of a file I deleted, but that a process is still writing to

I started a very long running job (expected to take 6 days to finish), and want to see its output, so I did: $ nohup ./thejob.sh > out.txt When I need to see the job progress I tail - f the file. ...
0
votes
1answer
37 views

Securely overwriting part of disk

A while ago I sought out the answer to the opposite question to the one I am posing here and found this answer: https://unix.stackexchange.com/a/98700 The grep() piped to tee() in the comments was ...
2
votes
0answers
359 views

What to do with extundelete recovered files

So, i accidentally delete my files. I attempt to recover files using extundelete with --restore-all options. Inside the RECOVERED_FILES directory i got files.xxxxx which i think is inode file. My ...
3
votes
1answer
3k views

Cannot remove directory, operation not supported on NTFS

I have an old Windows directory that I have not been able to remove using Windows processes so I moved to Slax Linux to try and remove it. When removing the directory I receive Cannot remove [...
2
votes
1answer
176 views

Deleting a specific file from inside a tar file [duplicate]

I have to delete the files which are zipped and then stored in .tar format. I Have to untar the files then delete the files which name includes XXX, YYY or ZZZ. There are more than thousand of .tar ...
1
vote
3answers
1k views

Can anyone delete the '/bin' folder in linux?

Can we delete the /bin folder in /usr directory in linux. If yes, then what are its consequences?
4
votes
2answers
2k views

How to recover the deleted binary executable file of a running process

I have a process running very long time. I accidentally deleted the binary executable file of the process. Since the process is still running and doesn't get affected, there must be the original ...
0
votes
3answers
2k views

Writing and reading from file descriptor 3 and /proc

When I run the following command: exec 3<<< "TEST" I can see the following appear in /proc (note last line regarding FD3 reading deleted): # ls -al /proc/$$/fd total 0 dr-x------ 2 root ...
0
votes
3answers
2k views

Recovering a file that is overwritten with cat >

If you have a file called myfile and you do cat > myfile instead of cat myfile (to see it's contents) I understand that it is overwritten. Is there any possible way to recover its contents? I tried ...
2
votes
1answer
114 views

Why does the pwd doesn't update after directory removal?

I tried a little experiment where I created 2 folders Dir1 and Dir2 inside my Desktop directory, such that Dir1 is parent of Dir2. /home/username/Desktop/Dir1/Dir2 Then, I use cd to set my pwd as /...
-3
votes
1answer
85 views

How to find the files have been removed in Shell? [duplicate]

If I deleted a file, how am I able to display that file just removed? For example: I deleted a file named A, if I run my shell, that will display file A have been removed.
0
votes
1answer
1k views

Recovering deleted files (Mac OSx)

I have gone through couple of previously answered questions but couldn't find any thing which will work for me. I used this command accidently on a wrong folder, which deleted some important files ...
0
votes
1answer
1k views

All my files have been erased after I tried to make my audio better

I am using Kali Linux 2.0 Debian 64 bit and I was having some problems with Sound output, I went to a certain website which advised me to execute the following sudo killall pulseaudio sudo apt-...
-3
votes
1answer
2k views

Deleted “apt-get” on Kali Linux need re-installing [duplicate]

I am on an Acer Aspire V15 Nitro, and I have two hard drives; One has Windows, but is not big enough for anything other than it (128GB SSD) and on a separate 2TB HDD I have grub installed, so I can ...
1
vote
0answers
609 views

Running tar cmd in wrong format, how to recover [duplicate]

Trying to tar a file called report, but accidentally running wrong format $ ls -l -rw-r--r-- 1 root root 708 Aug 20 10:12 report $ tar czvf report report.tar.gz then $ ls -l -rw-r--r-- 1 ...
4
votes
1answer
533 views

Accidentally deleted /usr/include. What can I do to reinstall the files that were in that directory?

I was trying to get SFML working on fedora 24, and I accidentally deleted the usr/include directory in the process. Is there any way to reinstall all the missing files? Or do I have to reinstall the ...
2
votes
3answers
3k views

What happens when we delete resolv.conf file from a Linux server?

I have deleted the resolv.conf file from a Linux server and now I am not able to login to that server. What is the logic behind this and how can this be resolved?
2
votes
2answers
938 views

Free space not reclaimed after truncating the fd

I have an old log that stays in (deleted) state, and after applying > /proc/'pid'/fd/4 the space is not reclaimed. In fact, the size of file is zeroed, but the space is still used ? Have I ...
4
votes
3answers
3k views

Ignore 'cannot remove `dir`: Is a directory message

I'm setting up an automation process where I am deleting files in a directory which contains sub-directories. I only want to delete the files in the directory, and want to keep the sub-directories ...
1
vote
1answer
867 views

Restore part of a package that was accidentally deleted

In the process of trying to fix an issue, I accidentally deleted /sbin/sysctl when I was intending to delete /etc/sysctl.conf. When I run sysctl I get the error that says The program 'sysctl' is ...
1
vote
1answer
5k views

View list of deleted files

I have executed rm -f *.gz about 30 days ago. Is there any way to find out the list of files that were deleted?
1
vote
2answers
863 views

How to Make MoveToTrash mean Delete Permanently by One-liner?

I did Move to Trash > Empty Trash. However, .fileNames and .directoryNames stay in the filesystem those .files/.directories which have exactly the same name as my deleted files/directories For ...
0
votes
1answer
58 views

How to Prevent Dropbox Access Elsewhere when Symlink?

I have the symbolic link ln -s $HOME/BTsync/masi/ $HOME/Dropbox/ I notice that contents in Dropbox GUI on Internet Browser are in conflict where masi directory has old files. I delete the directory ...
1
vote
1answer
1k views

Restore deleted text file content [duplicate]

I just wrote an important text and stored it as a simple text file. Then i accidentally cut out the content (with Ctrl+X) when i just wanted to copy it, and saved the file. Now it is of course empty. ...
4
votes
2answers
1k views

unlink original file instead of symbolic link. What to do?

I had a file with symbolic link link -> original_file original_file I mistakenly ran unlink command with original_file Now the original file is missing and the symbolic link is broken. What to do?...
-1
votes
1answer
79 views

How does ext[n] delete files?

I know that a lot of deleted files can theoretically be recovered, which suggests that "deleting" doesn't actually remove the information. So how do the various extN (e.g. ext4) filesystems delete ...
17
votes
4answers
48k views

What's the fastest way to remove all files & subfolders in a directory? [duplicate]

One program created lots of nested sub-folders. I tried to use command rm -fr * to remove them all. But it's very slow. I'm wondering is there any faster way to delete them all?
2
votes
2answers
272 views

cd out of deleted folder

Is there a way to cd out of a directory which has just been deleted (go up one level into the upper folder which still exists? It often happens to me that I have a console opened for a folder, and ...
0
votes
1answer
1k views

Using --delete option with rsync

We are using the following rsync command in a script to copy files from source to destination. rsync -av --exclude 'share/web/sessions/' --rsync-path "sudo rsync" /sdata/ 172.31.X.X:/sdata/ &>...
1
vote
1answer
1k views

recover files if still being used by a process

I have run into a problem where I accidentally erased the contents of a conf file. I am trying to use the cp and tail recovery process that I saw online but it does not appear to be working. The file ...