Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
05-29-2017, 05:32 PM
|
#1
|
LQ Newbie
Registered: May 2017
Posts: 3
Rep:
|
Can't remove a file under home/user location #filename#
Hello,
I'm new to Linux and I'm trying to remove a file under home/user location. The file appears as #filename#
I don't know how the file appeared here. I have another file in the same location with a similar description but not in between ##.
Thank you!
|
|
|
05-29-2017, 05:46 PM
|
#2
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
did you try opening a file manger and right clicking on it then selecting delete? (or move to trash)
|
|
1 members found this post helpful.
|
05-29-2017, 05:46 PM
|
#3
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
What is the name of the file? That way we can determine how it ended up there before you delete it.
You should be able to delete it with:
but it would be useful first to find out if it is open under a running process.
|
|
1 members found this post helpful.
|
05-29-2017, 06:05 PM
|
#4
|
LQ Newbie
Registered: May 2017
Posts: 3
Original Poster
Rep:
|
Got it.
Why did this happen? The file created in between ##?
I tried first with
rm -rf \#filename#
and it worked.
Thanks for your suggestion anyway. Could you explain more specifically your suggestion?
Thanks in advanced.
|
|
|
05-29-2017, 06:09 PM
|
#5
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
I find strange files in my home as well. little dust bunnies they are. Usually it is because of another app/program that creates them. I usually open them up to see if it will give me more information.
|
|
1 members found this post helpful.
|
05-29-2017, 06:09 PM
|
#6
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Quote:
Originally Posted by ansz
Why did this happen?
|
What was the name of the file?
|
|
|
05-29-2017, 06:12 PM
|
#7
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Quote:
Originally Posted by ansz
Could you explain more specifically your suggestion?
|
If it was my suggestion that you're referring to, the single quotes stop the shell interpreting the # symbol.
|
|
1 members found this post helpful.
|
05-29-2017, 06:23 PM
|
#8
|
LQ Newbie
Registered: May 2017
Posts: 3
Original Poster
Rep:
|
The file name was
salsichas
Perhaps I had a space before...
This file was edited with nano, vi and emacs, and since I'm new to this I might have done something wrong.
|
|
|
05-29-2017, 06:30 PM
|
#9
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Quote:
Originally Posted by ansz
The file name was
salsichas
Perhaps I had a space before...
This file was edited with nano, vi and emacs, and since I'm new to this I might have done something wrong.
|
Bingo. It was an emacs autosave file:
https://www.emacswiki.org/emacs/AutoSave
http://snarfed.org/gnu_emacs_backup_files
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 04:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|