Instalando Bash no FreeBSD (GNU É O CARALHO)

De Wiki Hackstore

Install bash under FreeBSD

Login as root and type the following commands to install bash using FreeBSD ports:

# portsnap update extract
# cd /usr/ports/shells/bash
# make install clean

To install FreeBSD binary package, enter:

# pkg_add -r bash

How do I use bash under FreeBSD?

To use bash shell, enter:

# bash


# /usr/local/bin/bash

How do I set bash as a default shell?

To set bash as default, shell enter:

# chsh -s /usr/local/bin/bash {username}
# chsh -s /usr/local/bin/bash vivek
# chsh -s bash

Verify that bash is default shell for a user account called vivek, enter:

grep vivek /etc/passwd


egrep --color 'vivek|zsh' /etc/passwd


finger vivek

Sample outputs:

Login: vivek          			Name: Vivek Gite
Directory: /home/vivek              	Shell: /usr/local/bin/bash
On since Tue May  8 02:15 (IST) on pts/0 from
No Mail.
No Plan.