Navigate to

Peter Garrett peter.garrett at optusnet.com.au
Tue May 30 09:34:11 UTC 2006


On Tue, 30 May 2006 11:07:00 +0300
Avraham Hanadari <rufus at hanadari.net> wrote:

> On Mon, 2006-05-29 at 01:56 +0200, Florian Diesch wrote:
> > Avraham Hanadari <rufus at hanadari.net> wrote:
> > 
> > > While in the process of trying to install the downloaded file, however,
> > > I was instructed to "navigate to the folder" and then key a command
> > > line. I tried to write the path to where the installation file was, but
> > > that didn't work. What is meant by "navigate to" and how is it done?
> > 
> > You have to open a Terminal window. There you type 
> >  cd /the/folder/they/told/you
> > 
> > 
> > "cd" means "change directory" (on unix-like platforms you often use
> > "directory" instead of "folder")
> > 
> > 
> >    Florian
> cd was a command in DOS days. I used it now and this is what I got:
> rick at DeepThought:~$ cd /rick
> bash: cd: /rick: No such file or directory
> rick at DeepThought:~$ cd /home
> bash: cd: /home: No such file or directory
> rick at DeepThought:~$ sudo cd /rick
> Password:
> sudo: cd: command not found
> rick at DeepThought:~$
> 
> I think I'm missing something.

Yes :-)

/rick would be a directory directly off the root of the filesystem ( / )
like /etc or /boot or /usr

Since you are in your $HOME directory, you just type

cd rick

If you want to go to /etc/somedir you type

cd /etc/somedir  

Of course, in your home dir, 

cd /home/yourusername/rick 

would also work, but it's a bit long-winded ;-)

I think sudo cd won't work since "cd" is built in to the shell

peter at prospero:~ $ type cd
cd is a shell builtin
peter at prospero:~ $ sudo cd debs
Password:
sudo: cd: command not found

Peter

-- 


"Hyperlinks subvert hierarchy."

-The Cluetrain Manifesto




More information about the ubuntu-users mailing list