• Home
  • SEM
    • PPC
    • SEO
    • How To
  • Bangladesh
  • School
    • HTTP
    • REP
    • Bots n’ htaccess
    • Source Code
    • Excel 2010
    • HTML XHTML Entities
    • Gmail Operators
    • HTML & ASCII
  • About
    • Privy
    • About This Blog
  • Contact
  • বাংলা

Saidul Hassan

Digital Marketing Evangelist

Home / Linux Mint / How to find list of available shells using terminal command in Linux Mint 17.x/18.x

How to find list of available shells using terminal command in Linux Mint 17.x/18.x

27 Feb, 2017 By Saidul Hassan · Filed Under: Linux Mint

[toc]

How to find list of available shells by command-line?

cat /etc/shells

Example:

cat /etc/shells
# /etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
/usr/bin/fish

How to check which shell you are using?

echo $0

How to check which is the default shell for you?

echo "$SHELL"

$SHELL gives you the default shell. $0 gives you the current shell.

Terminal command for listing available shells.

grep '^[^#]' /etc/shells

Example:

grep '^[^#]' /etc/shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
/usr/bin/fish

Reference:

http://askubuntu.com/questions/590899/how-to-check-which-shell-am-i-using
http://unix.stackexchange.com/questions/140286/how-to-find-list-of-available-shells-by-command-line
http://askubuntu.com/questions/625601/terminal-command-for-listing-available-shells

Disclaimer:

As with everything we do and ourselves, this document is a continual work in progress and will be progressively updated. Readers are cautioned not to use the document as a reference or, if they do cite it, to refer to it as a work in progress.
Updated February 27th, 2017

The following two tabs change content below.
  • Bio
  • Latest Posts
My Twitter profileMy Facebook profileMy LinkedIn profileMy Instagram profileMy Pinterest profile

Saidul Hassan

Managing Partner at Up Arrow Consulting
COO at Up Arrow Consulting, MCC manager, & Technical SEO consultant. Certified Google Partners and Microsoft Bing Ads Accredited Professional, Python enthusiast, wannabe SysAdmin. Graduated from School of Management & Business Administration (SOMBA), Khulna University.
My Twitter profileMy Facebook profileMy LinkedIn profileMy Instagram profileMy Pinterest profile

Latest posts by Saidul Hassan (see all)

  • Batch script to create directories & moving fixed number of files to those directories - 30 Apr, 2021
  • How to use PrismJS syntax highlighter on WordPress without plugin - 30 Mar, 2020
  • Download an Entire Website for Offline Viewing - 26 Nov, 2019

Share:

  • Twitter
  • Facebook
  • LinkedIn
  • Pinterest
  • Pocket
  • Email
  • Print

First published on 27 Feb, 2017 · Last updated 27 Feb, 2017 · Tagged With: How To, linux mint, shell, Terminal

Batch script to create directories & moving fixed number of files to those directories

30 Apr, 2021 By Saidul Hassan

How to use PrismJS syntax highlighter on WordPress without plugin

30 Mar, 2020 By Saidul Hassan

Download an Entire Website for Offline Viewing

26 Nov, 2019 By Saidul Hassan

How to color highlight .htaccess files in Xed/Gedit

20 Aug, 2018 By Saidul Hassan

HMA Pro VPN Setup for Multiple Locations without User/Password Every time in Linux CLI

14 May, 2018 By Saidul Hassan

  • ♥ Bangladesh ♥
    Log in · Privacy Policy · Contact
    Copyright © 2011 Saidul Hassan

  • DMCA