last day (15 days later) » 

19:18
0
Q: all my files disappeared

user1963160I'm using the version 22.04 and unfortunately all the files in all the folders have been wiped out. I have used this ( find . capcut "*.bak" -type f -delete) to cancel files with a specific name of CapCut but it has removed all kinds of file in the all memory. The weird thing is that on the Dis...

you don't mention which OS you are using. Please read How to Ask then edit accordingly
apologies Ubuntu 22.04
The command you provide in your question shouldn't have done anything to your files, instaed you shoud have got the error message find: unknown predicate -CapCut'`.
open Files navigate to Rubbish Bin. Are the files shown there?
nothing anywhere, all the folders are empty. there were folders in the desktop that are also empty
19:18
Are you sure you provided the command EXACTLY as you entered it in your question, as I'd expect the exact error @mook765 mentioned; in fact its all I get if I run it on my box, with no file touched due to error in command.
yes exactly that command, took it wrongly from this post askubuntu.com/questions/377438/…
I suggest you re-check, if I open that page your last comment provided, and search for "CapCut" as per your command, there are no textual references to that word on that page...
yes CapCut is a program that I have had installed and I was trying to delete everything with that name on my pc but obviusly it deleted or hid everything. That post isn't about CapCut
However, for the future: run a find-command always without the -delete-action first to see which files would get deleted. After checking you can run the find-command with the -delete-action.
I have tried to check with R-linux a program to recover deleted files but it shows something a bit weird, is there any way that I could share a screenshot?
If anyone want I"m willing to share my screen to help me retrieve the files or at least see the problem, I really don't know what to do at this point
19:18
Can you append to your question the result of the following command 'alias' & 'cd ~' & 'ls -al'
yes just added as a photo because it was too long and messy up in the description, thanks for all of you helping out
The command in that other answer requires you to type -name explicitly. You replaced it with -CapCut which as others have commented will just error off. What you think happened, did not happen. Use the command history in a terminal to see what you actually did. That other answer also tells you to run it without the -delete first!
on the history it gives me this command as the first one find . capcut "*.bak" -type f -delete nothing before that
See, that is different. No -. Please edit your question and show the actual command you ran.
If I run find . capcut "*.bak" -type f get (a) the names of all files in the current directory and sub-directories (b) find: ‘capcut’: No such file or directory (c) find: ‘*.bak’: No such file or directory. If had used the -delete action that would have deleted all the files under the current directory and sub-directories.
19:18
so just have changed that, what shall i do now? are any of those files retrievable?
See How to recover deleted files? for some possible options to recover the files. I haven't had to do this myself, so can't recommend any specific option.
but as said before they shouldn't be cancelled because if there are no files in my pc how can I have from 629 gb only 460 remaining?
The commands to run were supposed to be three different commands. How did 'alias' become 'mass' and 'cd ~' become sda? I think what you did was put the first two commands to run in the background. Anyway, you appear to have some files remaining such as in the Desktop. So what you deleted will depend on the directory you were in when you ran it (ie '.' which is the current directory) It will delete everything from there downwards. Append to you question the output of the following command 'df' which will show disk usage in your 'home' directory.
Apologies I thought that it was to be replaced, I've put the df image on the description

last day (15 days later) »