On Thu, Jul 27, 2006 at 06:43:01PM -0700, Erroll Partridge wrote:
> hi
> 
> i am using ubuntu 5.10 on my pentium 3, 128mb ram hp vectra.

I don't use Ubuntu, but I suspect that the below will work.
> 
> 1. why is there no man page for the command cd?

I don't know--assuming most of the man pages are there, I would guess
that somehow it got overlooked, and probably merits a bug report.  

> 2. what is the command to list all the available shells in ubuntu 5.10?

If you mean installed shells, the command is what it would be on all
Unix machines.

less /etc/shells

(hrrm, AIX doesn't have the "less" command, so to make it universal)

more /etc/shells

This will list the contents of /etc/shells, one screen at a time. Though
it's unlikely that there are so many shells in there that it would
scroll off of the screen, but one can, if you want to read a file, use
more rather than cat.  Both output the contents of the file, but more
does it one screen at a time.  (Cat has other uses, but that's not
relevant here.)

If you mean how do you see all shells that are available, including
those that aren't installed but could be installed through apt-get on
Ubuntu, when I used Debian, the command was apt-cache search shell, I
think.  I believe Ubuntu and other Debian derivatives have synaptic, a
graphic front end, which might be easier for you, there's probably a
list of shells.


> 3. how do i, using bash, navigate to a directory/ folder in which its folder 
> name consists of a space? cd Linux Software, for example, won't work.
> 

Are you familiar with tab completion?  This means if you type the start
of something that the shell can see, it will complete it. 

For instance, suppose I have a file named longfilename.

If I do vi longf and hit the tab key, most shells will complete the
command.  If there is more than one possibility then you have to hit the
tab key a few more times, and it will list all of them.  For instance,
if I have two files, test1 and test2 and go 

ls tes 

then hit the tab key, it might require a second tap of the tab key, and
will then list both of them. 

Files with spaces are usually shown, (with tab completion) by
backslashes.  So, if I do 

touch 'stupid file name'

(Note that I have to put it in quotes, else the shell will create three
files, stupid, file and name' then try to list it with tab completion

ls stupid

(hit the tab key)

I'll then see
stupid\ file\ name

The backslash is used to escape certain characters, and a space is one
of those characters.

So, in bash you could go 

cd stupi

hit the tab key and you'll see

stupid\ file\ name
and if you hit enter, it will then cd to that directory.

THe other option is to put it in (if you know it's name) in quotes,
either single or double in this case, such as

cd 'stupid file name'


-- 

Scott Robbins

PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

(After finding Spike outside her house.) 
Buffy: What are you doing here, Spike? Five words or less! 
Spike: (counting on fingers) Out... for... a... walk... bitch. 



To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to