Check and List Available Shell

Linux Windows Computer Technology Install Setup Linux Network Configuration Troubleshoot Linux Unix Linux Classes Linux Training
Linux Classes Linux Training Linux Technology Computer Install Setup Linux Network Configuration

 

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.

List available shell on Linux

[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...

List shell on Linux

[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.

display available shell on Linux

[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 

 


Custom Search