LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-31-2002, 12:21 AM   #1
kato678
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-31-2002, 12:39 AM   #2
linuxcool
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-31-2002 at 12:41 AM.
 
Old 05-31-2002, 07:03 AM   #3
geoffm33
Member
 
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:

Quote:
$ 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:

Quote:
$ rm '#somefile#'

Last edited by geoffm33; 05-31-2002 at 07:05 AM.
 
Old 06-05-2002, 07:26 AM   #4
Thymox
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, 07:46 AM   #5
vfs
Member
 
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 geddy@ig.com.br.

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

hth

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

Rep: Reputation: 64
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.
 
  


Reply


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 07:23 AM
Getting the type of the file rajesh_b Programming 4 09-26-2004 03:04 PM
c++ file processing -- how to remove a record from a file sharonyiisl Programming 4 09-26-2004 04:54 AM
open file, file of type selections rkfb Linux - Newbie 2 11-19-2003 06:32 AM
Best way to get file type jpbarto Programming 1 06-23-2003 04:00 PM


All times are GMT -5. The time now is 09:01 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration