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.
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.
If you deleted file from CLI it's lost. You can try to recover it from disk, but you can't find it, because it's not exists.
If you want to trash-like feature in CLI you can create new folder, for example /trash and then create function in .bashrc
function rm {
mv $@ /trash
}
It's very simple, and it won't probably handle all possible scenarios of arguments. You can also write your own 'remove tool' for example in Python, and replace standard rm command.
If you deleted file from GUI, there is probably bin folder in your home user folder. Check hidden folders (with dot at the beginning) in your home folder. According to mint doc it should be something like ~/.Trash
or ~/.local/share/Trash
libtrash
or a snapshotting filesystem like nilfs2.
– allo
Sep 01 '17 at 15:02