Page 1 of 1

Funny files ie

PostPosted: Jun 22nd, '21, 04:39
by nigelc
I have got some funny files they might have come from clear out old kernels.

Code: Select all
/root
>> mc

 recup_dir.1/
drwxr-xr-x  2 root root  20480 May  6 22:46 recup_dir.10/
drwxr-xr-x  2 root root  36864 May  6 22:46 recup_dir.11/
drwxr-xr-x  2 root root  36864 May  6 22:47 recup_dir.12/
drwxr-xr-x  2 root root  20480 May  6 22:48 recup_dir.13/
drwxr-xr-x  2 root root  20480 May  6 22:48 recup_dir.14/
drwxr-xr-x  2 root root  20480 May  6 22:51 recup_dir.15/
drwxr-xr-x  2 root root  28672 May  6 22:51 recup_dir.16/
drwxr-xr-x  2 root root  36864 May  6 22:51 recup_dir.17/

I don't know how to make it it onto a .xz attchment it will be server several Gb long.
cheers.


drwxr-xr-x  2 root root  40960 May  6 22:51 recup_dir.18/
drwxr-xr-x  2 root root  45056 May  6 22:51 recup_dir.19/
drwxr-xr-x  2 root root  36864 May  6 22:46 recup_dir.2/
drwxr-xr-x  2 root root  40960 May  6 22:51 recup_dir.20/
drwxr-xr-x  2 root root  36864 May  6 22:51 recup_dir.21/
drwxr-xr-x  2 root root  36864 May  6 22:51 recup_dir.22/
drwxr-xr-x  2 root root  36864 May  6 22:51 recup_dir.23/
drwxr-xr-x  2 root root  45056 May  6 22:51 recup_dir.24/
drwxr-xr-x  2 root root  45056 May  6 22:51 recup_dir.25/
drwxr-xr-x  2 root root  20480 May  6 23:07 recup_dir.26/
drwxr-xr-x  2 root root   4096 May  6 23:16 recup_dir.27/
drwxr-xr-x  2 root root  40960 May  6 22:46 recup_dir.3/
drwxr-xr-x  2 root root  32768 May  6 22:46 recup_dir.4/
drwxr-xr-x  2 root root  20480 May  6 22:46 recup_dir.5/
drwxr-xr-x  2 root root  36864 May  6 22:46 recup_dir.6/
drwxr-xr-x  2 root root  36864 May  6 22:46 recup_dir.7/
drwxr-xr-x  2 root root  36864 May  6 22:46 recup_dir.8/
drwxr-xr-x  2 root root  20480 May  6 22:46 recup_dir.9


then when I do ls - als it becomes *f12----->.xz
Installation stuff.

Can I get rid of it ??? how?
..wipe out the whole /.root dir.

Re: Funny files ie

PostPosted: Jun 22nd, '21, 06:02
by sturmvogel
These are normaly folders that are created by a file recovery software like PhotoRec or testdisk or whatever. They are always owned by root. You can either change the ownership to your user, check the content and decide afterwards if you want to delete them. Or if you are directly sure that you don't want them use
Code: Select all
sudo rm -rf /your/path/here/recup_dir.1
to delete one folder
or
Code: Select all
sudo rm -rf /your/path/here/recup_dir*
to delete all recup_dir folders

The documentation from testdisk where this is described:
https://www.cgsecurity.org/testdisk.pdf