LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-19-2004, 09:10 AM   #1
paschim
Member
 
Registered: Apr 2004
Location: UK, south london
Posts: 51

Rep: Reputation: 15
how to delete .file?


How do we delete file which has . with it such as .file for example. I wanted to delete .XO-lock file in /etc i didn't find any way to delete.

help 'd be appreceated.
 
Old 10-19-2004, 09:37 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Re: how to delete .file?

Quote:
Originally posted by paschim
How do we delete file which has . with it such as .file for example. I wanted to delete .XO-lock file in /etc i didn't find any way to delete.

Um, rm /etc/.XO-lock in the console should do the trick
 
Old 10-19-2004, 09:44 AM   #3
paschim
Member
 
Registered: Apr 2004
Location: UK, south london
Posts: 51

Original Poster
Rep: Reputation: 15
didn't work, I was using x terminal
 
Old 10-19-2004, 12:13 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally posted by paschim
didn't work, I was using x terminal
Could you expound a little on "didn't work'"? Did you get an error message? Do you have permission to delete this file (post the output of ls -al if you're not sure)? Were you root when you tried to delete it?
 
Old 10-20-2004, 02:07 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.

Deleting from /etc requires special permissions. In most cases you need to be root. Run
su
(enter root password when it asks you)
rm /etc/.XO-lock
 
Old 10-20-2004, 04:56 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Out of curiosity:

Which stupid distro writes locks into /etc ?


Cheers,
Tink
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you delete a file?? The Pentium Guy Debian 7 11-01-2004 09:30 AM
Can't delete a file elfoozo Linux - General 6 10-31-2004 06:33 PM
How to delete a file Meatball1337 Linux - Software 1 10-04-2004 09:05 PM
Tried to delete file as root but it says I don't have permission to delete it! beejayzed Mandriva 23 03-12-2004 02:46 AM
Delete contents of the file, but not file? mikeshn Linux - General 9 05-28-2003 06:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:08 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
Open Source Consulting | Domain Registration