Skip to main content

Questions tagged [deleted-files]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

Deleting incremental backups created with rsync and symbolic links: recursive effect?

I am doing incremental backup according to the following example found there: https://linuxconfig.org/how-to-create-incremental-backups-using-rsync-on-linux #!/bin/bash # A script to perform ...
ecjb's user avatar
  • 445
0 votes
0 answers
609 views

How to recover files accidentally deleted from LUKS encrypted device?

I just "Permanently Deleted" two pictures from a folder in my disk that is encrypted with LUKS. I ran sudo testdisk and navigated through the menus. It did identify the two now missing files ...
xsn8853's user avatar
12 votes
4 answers
6k views

How can I restore my default .bashrc file again?

I accidentally changed all the contents of the .bashrc file and I haven't scripted it yet so there's no problem for now. I added little scripts to it (just a few alias), so I can write them again one ...
Ash's user avatar
  • 145
0 votes
1 answer
100 views

my system is almost useles after running this cmd sudo apt-get remove --purge '^nvidia-.*'

Hello I'm very new to linux and the cmd line and have been learning a lot through google, firefox, and bing. I'm running Ubuntu server Xenial 16.04.07 LTS with all security patches from ubuntu, ...
Edward Bullock's user avatar
0 votes
0 answers
140 views

ntfsundelete not reading entire partition

To avoid XY problem, here's the background of the problem I am facing... I have an external hard drive which should have hundreds of files and suddenly, all of them disappeared (I have no idea why). I ...
nicolasbk's user avatar
0 votes
1 answer
175 views

remove files after x hours but ignore hidden folder/files

I have a mounted a folder to a seedbox. and in the folder i use syncthing. so it creates a " .stfolder" which is used for syncthing . basically i am having trouble finding a script to run ...
Justin Thibou's user avatar
0 votes
0 answers
429 views

Recover files from a tmpfs?

How do I recover files from a tmpfs? Some people say to use Volatility, but Python 2 Volatility doesn't have any Linux modules, and I don't see where to do file recovery in the Python 3 Volatility ...
Geremia's user avatar
  • 1,185
1 vote
2 answers
3k views

Restore deleted contents of a text file

Due to this bug, the content of one of my source files was deleted. I searched a lot and found that I can read the raw data on the storage device with the dd command, and I can find the address of ...
ali tavakoli's user avatar
2 votes
1 answer
725 views

`rsync` deletes all after input/output error mapping

I'm running a rsync command between two servers with the following command: rsync -auv -P --delete --delete-excluded --stats --progress -e "ssh -i ~/.ssh/$ssh_pkey -p $port -l $user" $...
Laurent Besnard's user avatar
0 votes
1 answer
9k views

mkdir gives "No space left on device" message but sudo mkdir works [duplicate]

When I try to use mkdir test in /home/, I get mkdir: cannot create directory ‘test’: No space left on device. I've deleted over 1Gb of files and restarted some processes that were using deleted files, ...
vietnamese_chowder's user avatar
4 votes
0 answers
835 views

File deletion bypasses trash bin on Btrfs subvolumes

Nautilus trash do not move file to trash bin on btrfs file system instead it deletes them permanently. Thunar seems to do the same thing, and it seems related to lower level library implementation of ...
Émilien's user avatar
-1 votes
1 answer
752 views

Tab completion error: bash: cannot create temp file for here-document: No space left on device

I am absolutely new to Linux. I downloaded 50GB of data on the server disk via SSH. Then I deleted them using midnight commander. Now, the tab-completion doesn't work, and it is giving me the ...
user366312's user avatar
-2 votes
1 answer
13k views

How to recover files deleted by rm -vr?

When looking up a way to uninstall minecraft using console commands, the very first result on google told me to use the command: rm -vr ~/ .minecraft/*. I thought, oh well, I'm specifying the ...
linuxlife's user avatar
2 votes
0 answers
535 views

Undelete a specific folder with text files on a LUKS-encrypted, btrfs-formatted partition on GNU/Linux

How can I "undelete" a folder full of files on a GNU/LINUX system, where the partition is LUKS-encrypted and formatted using btrfs *? On my Debian Stable (currently Bullseye) machine I have ...
n0542344's user avatar
  • 406
1 vote
0 answers
2k views

df shows that no space left, but du disagree

df -h show that I'm almost out of space on my / (output is truncated): Filesystem Size Used Avail Use% Mounted on udev 16G 0 16G 0% /dev tmpfs 3,2G 2,2M 3,2G 1% ...
Dmitry Klimenkov's user avatar
2 votes
1 answer
46 views

Ensuring no files were deleted from directory at a certain time

I accidentally started an rm -rf on a large directory that I was working in. The directory contains, among other things, a data directory containing a number of subdirectories that each contain ...
Angus L'Herrou's user avatar
2 votes
0 answers
2k views

ext4magic segfault

I am trying to restore a directory I accidentally deleted which contained many files. Ironically this was a fat finger error while trying to set up a backup! I am following the instructions here: The ...
crobar's user avatar
  • 223
34 votes
3 answers
6k views

I just deleted everything in my home directory. How? And why are some files still there?

Never thought this would happen to me, but there you go. ¯\_(ツ)_/¯ I ran a build script from a repository inside the wrong directory without looking at the source first. Here's the script Scripts/...
iFreilicht's user avatar
2 votes
1 answer
782 views

linux /proc/mounts deleted, how to fix?

I have no idea how it happened but /proc/mounts is gone root# cat /proc/mounts cat: /proc/mounts: No such file or directory I can no long mount NFS shares anymore either. # mount -t nfs 10.10.10.10:/...
Dave's user avatar
  • 621
9 votes
7 answers
8k views

How to recover “deleted” files in Linux on an NTFS filesystem (files originally from macOS)

My girlfriend has a external hard disk with 10 years+ of photos, documents and more. A lot of these files originate from her old iPhone 5 and her MacBook. The hard disk itself is NTFS Format. Since ...
LukasH's user avatar
  • 99
1 vote
0 answers
504 views

Why does redshift use the deleted file /memfd:pulseaudio?

I ran a rkhunter scan (sudo rkhunter -c --enable all --disable none --rwo) and it showed me that redshift is accessing a deleted file. I'd like to find out why it's doing so and why it would need ...
mYnDstrEAm's user avatar
  • 4,388
5 votes
1 answer
1k views

Is ~/.local/share/Trash/files used by GNOME only for deleted files and not by rm command?

I am using RHEL8, and I see the directory - ~/.local/share/Trash/files And there were so many files in it. Looking at the name and files present there it gave me an intuition that it is similar to ...
Darshan L's user avatar
  • 279
3 votes
1 answer
2k views

Does anyone know the way to undelete file on ZFS?

Is there any way to undelete file on ZFS. I overwrote JPG file with the scanned image. Unfortunately, I didn't take snapshot. But ZFS uses the CoW mechanism, overwritten data may still alive, I think. ...
kou's user avatar
  • 31
1 vote
2 answers
633 views

Find command in linux and delete, but test with print, give no results

I'm trying to find some files on my NAS and then delete the files/folders that's more then 5 days old. I can use the find command as: find /volume1/docker/UV/videos -type f -print And then i get all ...
Thomas Bøg Petersen's user avatar
1 vote
1 answer
3k views

Restore deleted version of nginx configuration

I applied the following wrong Sed command to my nginx configuration: sed 's/php7.2-fpm/php7.4-fpm/g' /etc/nginx/sites-enabled/default > /etc/nginx/sites-enabled/default And the entire file is gone....
Madno's user avatar
  • 175
0 votes
1 answer
2k views

100% disk usage. what to do?

root@vps559:/# df -h Filesystem Size Used Avail Use% Mounted on udev 960M 0 960M 0% /dev tmpfs 195M 648K 194M 1% /run /dev/sda1 20G 20G 82M 100% / ...
Jin Lim's user avatar
  • 111
1 vote
1 answer
76 views

Is it possible to read a .sh that was deleted from file system but is being executed? [duplicate]

I've received a project that some dude did and it's on production stage. But that guy had some issues with project managers and other team members (bad attitude, being an ass.. etc). Intentionally he ...
edd2110's user avatar
  • 111
0 votes
0 answers
179 views

how to delete a file physically from disk in linux so that there is no way it can be recovered?

I am trying to delete a file in linux, (Ubuntu 20.04). As per my understanding, when we delete a file, the inode and directory entry structures are modified first and the file is actually deleted at a ...
nishad kamdar's user avatar
-4 votes
1 answer
1k views

I need a script to delete files that are more than a certain size, in centos 7 [closed]

Given the name and size of a file, if the files size is more then the given size it should be deleted.
michele 's user avatar
1 vote
0 answers
47 views

Copy a file with zero links but still open in some process

I like to copy this file: # lsof +L -p XXX Anime4KCP 78674 evar 14w REG 1,6 101187628 0 8682526126 /Users/evar/Base/_Code/Misc/Anime4KCPP/bin/output/...
HappyFace's user avatar
  • 1,620
0 votes
1 answer
1k views

I accidentally deleted var directory in my linux opensuse system. I can't acces the GUI as var/lib/gdm also got deleted

Message shown: Server authorization directory (daemon/ServeAuthDir) is set to /var/lib/gdm but this doesn't exist.
Open Suseee's user avatar
0 votes
1 answer
1k views

What is the impact of deleting /etc/rc.d and /etc/rc0.d?

I am relatively new to black-screen Os-es (*nix) I was given few commands to run on Linux: remove etc/rc.d/rc0.d remove only logscan, procscan and gpp I got confused and did: rm -rf rc.d rm -rf rc0....
Tech User's user avatar
-2 votes
1 answer
1k views

after deleting some files. space is not freed

after deleting some files. space is not freed. by running the command df -h the free space is always 0. /dev/sda3 233G 224G 0 100% / even after rebooting the system output df -h;ls -l ...
artemisVA's user avatar
0 votes
1 answer
2k views

Recovering files on CentOS 7

I would like to know if it is possible to recover files that I have deleted? I have VPS with CentOS 7 and if it is possible I would like to look for (and recover) deleted files by their file ...
Ryukote's user avatar
  • 103
1 vote
3 answers
1k views

Accidentally deleted /usr/ directory in CentOS 8

Accidentally /usr/ directory got deleted, in Cent OS 8. For recovering CentOS, I have found this link which needs live CentOS 8 installed in USB drive. However CentOS 8 doesn't have live ISO release ...
Genie's user avatar
  • 13
1 vote
2 answers
5k views

/var/log/messages growing indefinately because rsyslog won't let it be deleted

I had an issue with /var running low on space despite it only appearing to have only 2 gigs of files allocated on the 5 gig partition. I determined the issue was that /var/log/messages was deleted but ...
dsollen's user avatar
  • 794
3 votes
1 answer
329 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 ...
Fco Javier Balón's user avatar
-1 votes
1 answer
567 views

Restore deleted images (png/gif/jpg/jpeg)

I inadvertently deleted images from my Linux filesystem today with classic command rm -f. All deleted images were in one single folder. Not all my images were in this folder, it was only very specific ...
Denis's user avatar
  • 113
0 votes
2 answers
218 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 ...
Learning_DBAdmin's user avatar
1 vote
1 answer
546 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 ...
sgu55's user avatar
  • 81
1 vote
1 answer
616 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. ...
MikeSchinkel's user avatar
0 votes
2 answers
841 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?
user avatar
7 votes
2 answers
648 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 ...
Bwmat's user avatar
  • 189
8 votes
2 answers
3k 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: $ ...
wenzeslaus's user avatar
1 vote
1 answer
206 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 ...
user239457's user avatar
0 votes
1 answer
228 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-...
Arcticooling's user avatar
2 votes
1 answer
3k views

How to undelete a file on a btrfs filesystem

Which software and commands are required, to undelete a file on a btrfs filesystem?
Jonas Stein's user avatar
  • 4,138
1 vote
1 answer
769 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 ...
Norian's user avatar
  • 11
2 votes
1 answer
90 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 ...
aispark's user avatar
  • 358
0 votes
0 answers
709 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 ...
Claire's user avatar
  • 9