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
- 19393 reads
- Email this page
Recent comments
6 years 31 weeks ago
6 years 35 weeks ago
6 years 47 weeks ago
7 years 2 weeks ago
7 years 12 weeks ago
7 years 15 weeks ago
7 years 22 weeks ago
7 years 30 weeks ago
7 years 34 weeks ago
7 years 38 weeks ago