[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A funny little mistake



On Sun, 26 Apr 1998, Thomas J. Malloy wrote:
>   " mv thefile.tar.gz  /~ ".  Now I have a 800k file named ~ on / .  I 
> tried to  "mv ~  normalfilename" and this does create a normal file, but 
> the ~ file still exists.  If I try  to "rm ~ "  the system thinks I want 
> to delete my home directory. 

prefacing the '~' with a backslash ('\') ought to do the trick.
the backslash is the shell's delimiting character, and the shell will not
try to expand anything directly after a backslash.
so mv \~ newname

7~he 7~hought /|ssassin


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: