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
- 20685 reads
- Email this page
Recent comments
9 years 2 weeks ago
9 years 6 weeks ago
9 years 18 weeks ago
9 years 25 weeks ago
9 years 35 weeks ago
9 years 38 weeks ago
9 years 45 weeks ago
10 years 5 days ago
10 years 4 weeks ago
10 years 9 weeks ago