DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 29th January 2009
gosha gosha is offline
Spam Deminer
 
Join Date: Jun 2008
Location: China
Posts: 256
Default strange "~" directory in home directory

hello everybody!
Today I found a strange "~" directory in my home directory, I don't know how it was created, could it be that I did it as a mistake? Anyway, as you can imagine, trying to delete it will delete my home directory (I did try, I have copies of everything anyway).
How do I get rid of it?
Tks
Reply With Quote
  #2   (View Single Post)  
Old 29th January 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,052
Default

I'd guess it was created by finger fumble. You can inspect it, then delete it with something like:
$ less ./~
$ rm ./~
The ls(1) "-l" option shows the last modification time; "-u" shows last access time; that may give you an idea of when it happened.
Reply With Quote
  #3   (View Single Post)  
Old 29th January 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by gosha View Post
Today I found a strange "~" directory in my home directory, I don't know how it was created, could it be that I did it as a mistake?
Emacs, perhaps?
Reply With Quote
  #4   (View Single Post)  
Old 29th January 2009
gosha gosha is offline
Spam Deminer
 
Join Date: Jun 2008
Location: China
Posts: 256
Default

that wasn't smart of me, I didn't think of putting the ./ before it. Oh well.
Inside there's a "llines" directory. Anyway, I'll delete. I don't really use emacs, I find it quite complicated to learn, and learning unix is already a challenge (especially from the point of view of time), I use vi, vim or gvim instead
thankyou
Reply With Quote
  #5   (View Single Post)  
Old 29th January 2009
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

When faced with this kind of problem, it can drive me nuts trying to figure out how to enter and/or escape the offending file or directory's name. So I go for the non-minimalist totally overkill method ... and use lynx (comes with OpenBSD). With this you can quicky inspect the file contents, and tag ('t') and remove ('r') it. Gets you back to what you were working on quickly.
Reply With Quote
  #6   (View Single Post)  
Old 23rd February 2009
vdubjunkie vdubjunkie is offline
Port Guard
 
Join Date: Feb 2009
Posts: 17
Default

Quote:
Originally Posted by gosha View Post
I don't really use emacs, I find it quite complicated to learn, and learning unix is already a challenge (especially from the point of view of time), I use vi, vim or gvim instead
thankyou
Good man! vi is all you ever need.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" jb_daefo Guides 0 5th October 2009 09:31 PM
"Thanks" and "Edit Tags". diw Feedback and Suggestions 2 29th March 2009 12:06 AM
rtorrent: Could not lock session directory: "/Torrents/Downloading/rtorrent.session/ mfaridi FreeBSD Ports and Packages 2 26th November 2008 06:47 AM
FTP users sharing same home directory phreud FreeBSD General 6 11th November 2008 10:11 PM
Jails - mount: /usr/home: No such file or directory chris FreeBSD General 6 6th August 2008 10:47 PM


All times are GMT. The time now is 03:52 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick