What is the command for " how many shell is running in your
system or how many shell supported by your system " ?.

Answers were Sorted based on User's Feedback



What is the command for " how many shell is running in your system or how many shell supporte..

Answer / sandeep jaiswal

how many shell supported by your system

check the file /etc/shells

Is This Answer Correct ?    9 Yes 1 No

What is the command for " how many shell is running in your system or how many shell supporte..

Answer / joker

> ps -a |grep -E 'sh$' |wc -l

-a is for to list process of all users
-E extended grep to filter the shells (since they end with sh like bash, tcsh, ksh, sh
-$ to match only at the end of the line where the process is printed

Is This Answer Correct ?    0 Yes 1 No

What is the command for " how many shell is running in your system or how many shell supporte..

Answer / nayakss

ps| grep -E "*shh*" | wc -l

This gives the no of shell currently running.
Though this answer is correct but I don't think this is the
right approach.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Shell Script Interview Questions

What is shell application?

0 Answers  


What is a command line shell?

0 Answers  


What is scripting autism?

0 Answers  


what is the difference between sh & bash shell?

1 Answers  


Is shell script a programming language?

0 Answers  






What is bourne shell scripting?

0 Answers  


Explore about environment variables?

0 Answers  


How to include comments in your shell scripts?

3 Answers  


What is batch file programming?

0 Answers  


In a single command how do you run the previous command in the command prompt.

5 Answers  


how to read systems current date and time

4 Answers  


How to print all array elements and their respective indexes?

0 Answers  


Categories