LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2010, 12:08 AM   #1
lipun4u
Member
 
Registered: Sep 2008
Location: Mumbai, india
Distribution: ubuntu and hp-unix
Posts: 118

Rep: Reputation: 15
command to list the no. of shells


How can I know how many shells my system support(..is there any specific command ) ???
 
Old 02-15-2010, 12:11 AM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Almost all distros can support any number of shells. To see what shells you do have installed check your /etc/shells file.

Normal shells installed are
tcsh
csh
bash
dash (Ubuntu based distros)
sh (bourne shell) normall a sym link to bash
ksh
 
Old 02-15-2010, 12:19 AM   #3
lipun4u
Member
 
Registered: Sep 2008
Location: Mumbai, india
Distribution: ubuntu and hp-unix
Posts: 118

Original Poster
Rep: Reputation: 15
thank you very much....
 
Old 02-15-2010, 12:39 AM   #4
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

Rep: Reputation: 55
How abt

Code:
chsh -l
 
Old 02-15-2010, 12:45 AM   #5
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by vinaytp View Post
How abt

Code:
chsh -l

That command does not work on all distributions. That is why it is better to look through your shells file as that is standard on almost all version of Linux, and even on AIX, and hp-ux
 
Old 02-15-2010, 12:53 AM   #6
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

Rep: Reputation: 55
I completely agree with you jstephens84.

But I replied by looking at the distros ubuntu and backtrack in the profile.

Last edited by vinaytp; 02-15-2010 at 12:54 AM.
 
Old 02-15-2010, 12:57 AM   #7
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by vinaytp View Post
I completely agree with you jstephens84.

But I replied by looking at the distros ubuntu and backtrack in the profile.
That is interesting. Have you tried it in Ubuntu. I just tried it on my mint laptop and the command does not work. I wonder if mint took out that option or if all debian based distros took that out?
 
Old 02-15-2010, 01:23 AM   #8
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

Rep: Reputation: 55
I dont't have Ubuntu machine available right now with me. But I quickly went through man page of chsh in ubuntu, interestingly Ubuntu doesn't provied -l option with chsh.

http://manpages.ubuntu.com/manpages/...n1/chsh.1.html

But chsh -l works very well under Redhat based distros..

Last edited by vinaytp; 02-15-2010 at 01:24 AM.
 
Old 02-15-2010, 01:33 AM   #9
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by jstephens84 View Post
dash (Ubuntu based distros)
You mean Debian based distros right .
 
Old 02-15-2010, 01:36 AM   #10
sohail0399
Member
 
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Rep: Reputation: 23
I have tried on CentOS its work fine.

chsh -l

output is :

/bin/sh
/bin/bash
/sbin/nologin
/bin/tcsh
/bin/csh
/bin/ksh
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
command to list all groups radiodee1 Linux - Newbie 4 07-09-2007 04:33 PM
ipcs command doesn't list anything leftPeg Linux - Software 4 02-20-2006 03:13 AM
How to just list directories using ls command shazam75 Linux - Newbie 10 01-26-2006 02:34 PM
Command to run another command against a list of files psweetma Linux - General 3 11-09-2005 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration