Check and List Available Shell


How to Check and List Available Shell on Linux System.
This step by step command example below show how to check and list available shell on your Linux system. The example below use chsh command to list available shell and then we use cat command to display the /etc/shells configuration file content that store the information about list of Linux shell available on our Linux system.
List available shell.
Login on your Linux system, open shell terminal and then execute command as show on example below..
1. Execute chsh with -l option to list available shell on the system.

[linux@fedora12 ~]$ chsh -l
/bin/sh
/bin/bash
/sbin/nologin
/bin/tcsh
/bin/csh
/bin/zsh
[linux@fedora12 ~]$
2. or use chsh with --list-shell option...

[linux@fedora12 ~]$ chsh --list-shell
/bin/sh
/bin/bash
/sbin/nologin
/bin/tcsh
/bin/csh
/bin/zsh
[linux@fedora12 ~]$
3. or use cat command to list and display available shell on the system that contain in /etc/shells configuration file.

[linux@fedora12 ~]$ cat /etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/tcsh
/bin/csh
/bin/zsh
[linux@fedora12 ~]$
Keywords: list available shell, list shell, available shell, shell list, display available shell, show shell available, check available shell, display shell list
- Add new comment
- 1968 reads
- Email this page

Recent comments
1 week 2 days ago
5 weeks 3 days ago
7 weeks 2 days ago
7 weeks 3 days ago
7 weeks 4 days ago
7 weeks 5 days ago
7 weeks 5 days ago
8 weeks 4 days ago
8 weeks 5 days ago
9 weeks 2 days ago