Re: bash newbie prob
From: Russell Hanneken (me_at_privacy.net)
Date: 06/30/04
- Previous message: codebreaker: "bash newbie prob"
- In reply to: codebreaker: "bash newbie prob"
- Next in thread: David Lord: "Re: bash newbie prob"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Jun 2004 07:58:43 GMT
codebreaker wrote:
> My freebsd contains sh shell
> Is it possible to put in bash?
I think you meant to post this on comp.unix.bsd.freebsd.misc. NetBSD is
a different operating system.
In any case, yes, you can certainly install bash on FreeBSD. The
simplest way is to use pkg_add:
pkg_add -r bash
This fetches the bash package from an ftp site and installs it. For
more information on packages (and the ports collection), see the FreeBSD
Handbook:
http://www.nz.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html
> How do i get get bash from a cd rom?( say using my linux cd which contains
> bash ).
You wouldn't want to use a version of bash found on a Linux CD.
> Or does it come with the freeBSD cd and not get installed by default
> but installs the sh shell?
Bash might be on your FreeBSD CD. It isn't part of the base operating
system, so it won't be installed with FreeBSD unless you make an effort
to install it. To install the package from the CD, mount your CD and
issue the command
pkg_add /path/to/file/bash-<version>.tbz
You'll have to fill in the details.
> I could do that but cd /mnt/cdrom does not get me into the cd rom
Did you mount the CD filesystem? If there's an entry in /etc/fstab for
your CD drive, mounting it might be as easy as
mount /cdrom
For me, the FreeBSD installation program wrote the fstab entry so that
the CD filesystem gets mounted on /cdrom, not /mnt/cdrom. Don't forget
to umount it when you're done.
> How to I do something equivalent in sh to
>
> cd /mnt/cdrom or cd /mnt/floppy
The cd command works the same in sh as it does in bash.
-- Russell Hanneken eunaarxra@cbobk.pbz Use ROT13 to decode my email address.
- Previous message: codebreaker: "bash newbie prob"
- In reply to: codebreaker: "bash newbie prob"
- Next in thread: David Lord: "Re: bash newbie prob"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|