From owner-freebsd-questions Sat May 27 12:30:44 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.nwlink.com (smtp.nwlink.com [209.20.130.57]) by hub.freebsd.org (Postfix) with ESMTP id 1B0E037B5AC for ; Sat, 27 May 2000 12:30:42 -0700 (PDT) (envelope-from jcwells@nwlink.com) Received: from ip34.r1.d.bel.nwlink.com (ip34.r1.d.bel.nwlink.com [207.202.172.34]) by smtp.nwlink.com (8.9.3/8.9.3) with ESMTP id MAA11988; Sat, 27 May 2000 12:30:39 -0700 (PDT) Date: Sat, 27 May 2000 12:14:03 -0700 (PDT) From: "Jason C. Wells" X-Sender: jcw@server.highperformance.net Reply-To: "Jason C. Wells" To: "Mark A. Hummel" Cc: freebsd-questions Subject: Re: Why can't I cd to certain directories??? In-Reply-To: <392F4E00.388262BF@ispchannel.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 26 May 2000, Mark A. Hummel wrote: >Sometimes when I try to cd to a directory like /usr/local/... I get an >error message reading: Can't cd to ... >I then try to cd one level down at a time. #cd /usr then pwd to find >out I actually made the trip. Then cd /local Sorry, can't cd to >/usr/local. Why when I'm logged in as a su? You have to be very careful about where you put those slashes. '/' is the root directory. It is at the very top. Any directory that you refer to in any command that has '/' as the first character will be relative to root. cd /usr will work. cd /usr/local will work. cd /local will NOT work because local exist in /usr but not in /. OBTW, don't use the root user unless you absolutely need it. Also, you don't log in as su. You login as root. Or you use the 'su' command to become root. Thank You, | http://students.washington.edu/jcwells/ Jason Wells To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message