Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-30-2002, 11:21 PM   #1
LQ Newbie
Registered: Feb 2002
Location: New Hampshire
Distribution: redhat 7.2
Posts: 24

Rep: Reputation: 15
How do I remove this type of file?..

Hi. New to linux and just wondering how I remove a file that looks like this #somefile# , and what type of file it is?

thank you
enjoying Linux and learning C
Old 05-30-2002, 11:39 PM   #2
LQ Addict
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
I don't know what type of file it is. Try rm "#somefile#".

Last edited by linuxcool; 05-30-2002 at 11:41 PM.
Old 05-31-2002, 06:03 AM   #3
Registered: May 2002
Distribution: RH 7.3 - YDL 2.3
Posts: 63

Rep: Reputation: 15
To find out what type of file it is, try:

$ file #somefile#
But rm can remove any file you have permissions on.

You may need to escape the pound signs or wrap the filename in single quotes like so:

$ rm '#somefile#'

Last edited by geoffm33; 05-31-2002 at 06:05 AM.
Old 06-05-2002, 06:26 AM   #4
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Isn't #somefile# a sort-of temporary backup file made by emacs when you didn't touch the file first?
Old 06-05-2002, 06:46 AM   #5
Registered: Apr 2002
Location: Brazil
Distribution: Slackware
Posts: 184

Rep: Reputation: 30
rm -f *#*#*

will delete every emacs crap... (and other bad named files as well... )

I wrote a script for directory cleaning. If some of you have interest, pls drop me a line at

It removes this kind of file and many others, interactvely (no rm -f * )


Old 06-05-2002, 07:02 AM   #6
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
BUT beware kato, if you are really a newbie, as the -f option used as root will get your system erased on accident one day. USE IT SPARINGLY.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
remove "or type Control-D to continue"? regavoga Linux - General 4 01-03-2005 06:23 AM
Getting the type of the file rajesh_b Programming 4 09-26-2004 02:04 PM
c++ file processing -- how to remove a record from a file sharonyiisl Programming 4 09-26-2004 03:54 AM
open file, file of type selections rkfb Linux - Newbie 2 11-19-2003 05:32 AM
Best way to get file type jpbarto Programming 1 06-23-2003 03:00 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:59 AM.

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