LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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, 10: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, 10:37 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,791
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
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, 10: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, 01:13 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,791
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
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, 03:07 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,540

Rep: Reputation: 149Reputation: 149
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, 05:56 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Out of curiosity:

Which stupid distro writes locks into /etc ?


Cheers,
Tink
 
  


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 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 10:30 AM
Can't delete a file elfoozo Linux - General 6 10-31-2004 07:33 PM
How to delete a file Meatball1337 Linux - Software 1 10-04-2004 10: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 03:46 AM
Delete contents of the file, but not file? mikeshn Linux - General 9 05-28-2003 07:47 AM


All times are GMT -5. The time now is 07:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration