Home » Linux Basics » 04 - Environment, Configuration, and Programming
4
Shells
Choosing a shell
The file "/etc/shells" contains a list of valid shells and the paths to them. Each shell has special features; choosing a shell is the user's prerogative
Common Linux Shells:
/bin/bash
/bin/sh /bin/tcsh /bin/csh /bin/ash /bin/bsh /bin/bash2
/bin/ksh /bin/zsh
The "chsh" command is used to set shell preference. The -l option shows available shells and the -s option selects a shell. Putting this command in a dotfile will make the selected shell the user's default shell.
[ LinuxUser ] ~$ chsh -l [ LinuxUser ] ~$ chsh -s /bin/ksh