How to use cd with special chars in a network directory name?
- From: "Jeff" <milleratotago@xxxxxxxxx>
- Date: 15 Mar 2006 15:02:18 -0800
(Sorry if this is a dumb question--I'm a bit of a Linux newbie.)
I need to access some files on a Novell server from
a (debian) Linux machine. I mount the server with a
command like this:
mount -t smbfs username=myname ServerMountPointName LocalDir
and then I can cd into LocalDir and ls the files and subdirs just fine.
The problem is that the directory structure on the server has some
directories whose names start with the minus sign, like "-main",
and I cannot get Linux to cd into those directories. From reading
various docs and faqs on the internet, I thought that one of these
should work, but none do:
cd -main
cd '-main'
cd `-main'
cd `-main`
cd "-main"
(In all cases, the Linux complaint suggests to me that it thinks
-main is some kind of cd option switch.)
I guess it isn't _just_ a network-related problem, because even on
the local drive I am also unable to make a new directory called
"-main" with any version of a command like:
mkdir -main
mkdir `-main'
etc
Any suggestions other than renaming all of the directories
on the server?
Thank you.
.
- Follow-Ups:
- Re: How to use cd with special chars in a network directory name?
- From: Robert Heller
- Re: How to use cd with special chars in a network directory name?
- From: Chris F.A. Johnson
- Re: How to use cd with special chars in a network directory name?
- Prev by Date: Re: Best OS for recording
- Next by Date: Re: use of a USB HD on 2 different distros
- Previous by thread: Re: Best OS for recording
- Next by thread: Re: How to use cd with special chars in a network directory name?
- Index(es):
Relevant Pages
|