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

write a shell script that accepts name from user and creates a directory by the path name, then creates a text file in that directory and stores in it, the data accepted from user till STOP, displays the no. of characters stored in the file.Program stops if directory name is null

1 Answers  


What is c in shell script?

0 Answers  


how did u debugging in unix/ linux platform ??( project Related)

2 Answers   Symphony,


How would you print just the 25th line in a file using smallest shell script?

4 Answers  


write a shell script to check the failed jobs?

0 Answers   Wells Fargo,


How will you print the login names of all users on a system?

0 Answers  


Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.

0 Answers  


How do I open the shell prompt?

0 Answers  


What is shell geeksforgeeks?

0 Answers  


How to handle the delimiter unit seperator in Unix

2 Answers  


How do I run a .sh file?

0 Answers  


What is the crontab?

0 Answers  


Categories