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
- 20374 reads
- Email this page
Recent comments
8 years 3 weeks ago
8 years 7 weeks ago
8 years 19 weeks ago
8 years 26 weeks ago
8 years 36 weeks ago
8 years 39 weeks ago
8 years 46 weeks ago
9 years 1 week ago
9 years 5 weeks ago
9 years 10 weeks ago