Cat moved or deleted files?

lubuntu 24.04.2 LTS

I have a dual monitor setup, and I had a bunch of icons on my left hand (main) monitor, and a bunch of files, folders and desktop shortcuts dragged across onto my right hand extended monitor.

I left the system switched on overnight, with the cat in the room, and this morning everything has vanished from the right hand monitor. There were a whole bunch of terminals open with a whole bunch of random cat-written garbage, clearly it’s been walking on the keyboard all night. The cat didn’t seem to have managed any coherent commands though.

Nothing in the recycle bin, and my best efforts to search the whole filesystem for the file and folder names I can remember being on the right hand monitor have failed.

Can anyone suggest methods for checking where any of this stuff might have gone?

Maybe the cat has managed to select all, shift-delete which would be very unfortunate :frowning:

1 Like

Ouch!

I have a cat who loves walking across the keyboard and seems to have an uncanny ability to change the language almost every time.

No guarantees, but here are some things to try:

ls -a ~/ # checks for files that might have been hidden or moved

Even though you checked, try looking in trash again.
gio list trash://

find ~ -type f -mtime -1 # look for recently modified files in the last 24 hours

grep -i "deleted" /var/log/syslog # check for activity related to files that might have been deleted

If none of this works, you may have to install and run testdisk to attempt recovery.

2 Likes

My desktop has a touchscreen. One summer, while I was away from my desktop for just a few minutes, a tiny insect (barely visible) landed on my Photos folder and dragged it to the Bin!

It’s possible that your cat managed to move the icons to a different folder, perhaps one of those on the desktop itself. If the suggestions by @rubi2000 don’t help, use the find command to search by name; this will include hidden folders:

find ~ -name 'name-of-file'

Otherwise, you’ll have to restore from your backup.

Good luck! Let us know what happens.

2 Likes

Thanks chaps. Tried your suggestions but It’s almost as if I’m mistaken there was anything ever there on the right hand screen to begin with. No evidence of anything anywhere. I could have sworn I had files and folders there though.

It’s not been long since a full reload of my system so I’m hoping if need be, I can get at anything important through it’s original source, emails and downloads… If there was anything there it would have mainly been desktop shortcuts and folders filled from other sources, not a lot of original material.

Comes back to the old adage doesn’t it… backup backup backup. And never underestimate children and animals!

1 Like

perhaps get one of these …

https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2Fd4e2zurwe8h41.jpg

6 Likes

I have no cats
but have had children who thought they were actually wolves.

When I leave the machine I type in:
xsl
which is an alias for:
alias xsl='xscreensaver-command -lock'

2 Likes

Do you mean that you actually had files and folders on the screen. ie, in your ~/Desktop folder or were they just links to those files and folders elsewhere in your filesystem?

A mixture of desktop shortcuts, actual files (mainly text files, pdf files etc) and folders containing various actual files. Yes residing within /home/me/Desktop/

If I look inside /home/me/Desktop/ or, just look at the left hand monitor (the laptop’s builtin screen which is set as the main monitor), I can see all the files, folders and shortcuts that have always been there. It’s just the ones that I’d dragged across onto the second, righthand monitor that seem to have vanished off it, and also from /home/me/Desktop/

One other thing I noticed was, the application menu button seemed to have vanished from the left hand of the taskbar/panel. I later discovered it had jumped across to the other side of the taskbar, rather than vanishing.

I’m really wondering now if I’m imagining there ever having been any items on the right hand monitor. Maybe I’d never even started populating that side after reloading recently.

It would be good to make that work from a clickable screen icon. Must be a way…

you can just press <Super>+L (or in older implementations <CTRL>+<ALT>+L) to lock the screen …

1 Like

Ok thanks. I found this worked as well…

[Desktop Entry]
Version=1.0
Name=Lock
Type=Application
Terminal=false
Exec=xscreensaver-command -lock
Icon=/usr/share/icons/Papirus/48x48/apps/kitty.svg
Categories=Utility;

Having several cats and a dog yep they can email lots of differing countries, delete files, etc etc. Dogs not so much but the cats can LOL …

The well-known open source developer Garfield has published a terminal command to help with this problem:-

cat /paws/off/keyboard | grep no_whiskas.txt

3 Likes

You can lock the screen also clicking on the padlock icon on top right:
Screenshot From 2025-04-09 14-39-51

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.