LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 12-13-2022, 02:23 PM   #1
pizzipie
Member
 
Registered: Jun 2005
Location: Hayden, ID
Distribution: Ubuntu 20.04
Posts: 441

Rep: Reputation: 12
Mysterious file shows up on Desktop - can't delete it!!


my setup:
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
DESKTOP=MATE 1.26.0
UBUNTU_CODENAME=focal

Somehow this file: Click image for larger version

Name:	mysteryFile.png
Views:	14
Size:	19.5 KB
ID:	40037

showed up on my Desktop. I can't get rid of it. Here is what I have tried:
Please help in getting rid of it and Where did it come from?????

Command: Remove (rm).
Code:
root@rick-Latitude-E6510:/home/rick/Desktop# rm 'MySql Forum.desktop.2QM1W1'
Output:
Quote:
rm: cannot remove 'MySql Forum.desktop.2QM1W1': No such file or directory
root@rick-Latitude-E6510:/home/rick/Desktop#
Command: List (ls).
Code:
root@rick-Latitude-E6510:/home/rick/Desktop# ls -lh MySql*
Output:
Quote:
-rwxrwxr-x 1 rick rick 156 Feb 24 2022 MySql.desktop
-rwxr-xr-x 1 rick rick 173 Dec 10 16:44 'MySql Forums.desktop'
 
Old 12-13-2022, 02:30 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by pizzipie View Post
my setup:
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
DESKTOP=MATE 1.26.0
UBUNTU_CODENAME=focal

Somehow this file: Attachment 40037

showed up on my Desktop. I can't get rid of it.
I guess that the first thing to do is to find the file. Try:

find /home -iname "*MySql*"
 
Old 12-13-2022, 07:14 PM   #3
pizzipie
Member
 
Registered: Jun 2005
Location: Hayden, ID
Distribution: Ubuntu 20.04
Posts: 441

Original Poster
Rep: Reputation: 12
Thanks for the reply.

NO JOY. 'find', does not find this file anywhere on the entire hard drive.

Command: find:

Code:
root@rick-Latitude-E6510:/home/rick/Desktop# find / -iname "*MySql*" > find_result.txt


Output:

Quote:
NO RESULTS SHOWING THIS FILE WERE FOUND IN find_result.txt

R
 
Old 12-13-2022, 08:09 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by pizzipie View Post
NO RESULTS SHOWING THIS FILE WERE FOUND IN find_result.txt


That's not what you would get using find / -iname "*MySql*" > find_result.txt

Try it again using:

find /home -iname "*MySql*"
 
Old 12-13-2022, 08:44 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,342
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
Try this:

Code:
locate *.desktop | grep sql
 
Old 12-14-2022, 02:23 AM   #6
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by pizzipie View Post
my setup:
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
DESKTOP=MATE 1.26.0
UBUNTU_CODENAME=focal

Somehow this file: Attachment 40037

showed up on my Desktop. I can't get rid of it. Here is what I have tried:
Please help in getting rid of it and Where did it come from?????

Command: Remove (rm).
Code:
root@rick-Latitude-E6510:/home/rick/Desktop# rm 'MySql Forum.desktop.2QM1W1'
Output:


Command: List (ls).
Code:
root@rick-Latitude-E6510:/home/rick/Desktop# ls -lh MySql*
Output:
Is this some sort of desktop icon that takes you to a MySQL user forum?

This might sound crazy but, when I encounter strange files that are difficult to remove (say, if their names contain strange control characters), I try Emacs.
Code:
$ emacs "directory-where-this-file-is-located"
You'll be in a directory mode where you would normally scroll to a file to edit and press Enter. In this case, scroll down to it and Enter "D". It should remove the file. The "ls" command output you posted that shows the file might be misleading if some odd undisplayable character is part of the filename. Emacs doesn't care and will delete files even if they contain such characters.

If this doesn't work, issue
Code:
$ lsattr 'MySql Forum.desktop.2QM1W1'
Are there any any strange attributes associated with that file. Perhaps some process marked the file immutable. Here's what I see if I create a file, make it immutable, and attempt to remove it:
Code:
$ cd /tmp
$ touch some.file
$ sudo chattr +i some.file             # Mark the file immutable
$ lsattr some.file
----i-------------- some.file          # The immutable attribute is set.
$ rm some.file
rm: cannot remove 'some.file': Operation not permitted
$ sudo chattr -i some.file             # Clear that attribute
$ lsattr some.file
------------------- some.file
$ rm some.file
rm: remove regular empty file 'some.file'? y
removed 'some.file'
IMHO, it's pretty rude to do something like that on a computer without the owner's permission.

HTH...
 
1 members found this post helpful.
Old 12-14-2022, 02:10 PM   #7
pizzipie
Member
 
Registered: Jun 2005
Location: Hayden, ID
Distribution: Ubuntu 20.04
Posts: 441

Original Poster
Rep: Reputation: 12
ANOTHER mystery???? That file disappeared from the desktop.

Sorry, I didn't do it.

Thank you all for your time to help me. Sorry time was wasted.

I did learn some things however, especially from rnturn about file attributes.

R
 
Old 12-26-2022, 12:46 AM   #8
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,869
Blog Entries: 1

Rep: Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870
Next time this happens, try right click on then icon and use 'Move to Trash' from the menu.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysterious, Icon-less Desktop adymroxx Linux - Software 2 06-01-2007 05:18 AM
desktop shows on TV but movie shows black screen litrelord Mandriva 6 07-05-2004 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 08:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration