[SOLVED] Mysterious file shows up on Desktop - can't delete it!!
Linux - Laptop and NetbookHaving 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.