LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to delete .file? (https://www.linuxquestions.org/questions/linux-general-1/how-to-delete-file-244624/)

paschim 10-19-2004 09:10 AM

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.

Hangdog42 10-19-2004 09:37 AM

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

paschim 10-19-2004 09:44 AM

didn't work, I was using x terminal

Hangdog42 10-19-2004 12:13 PM

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?

Mara 10-20-2004 02:07 PM

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

Tinkster 10-20-2004 04:56 PM

Out of curiosity:

Which stupid distro writes locks into /etc ?


Cheers,
Tink


All times are GMT -5. The time now is 01:49 AM.