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
Answer / sandeep jaiswal
how many shell supported by your system
check the file /etc/shells
| Is This Answer Correct ? | 9 Yes | 1 No |
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 |
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 |
Why is a script important?
How can I Debug a shell scripts and Perl scripting?? or How do you debug a shell scripting and perl scripting ( at the compile time error or run time error) in Unix environment ?
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
Explore about environment variables?
What is the use of "$#" in shell scripting?
In which variable prompt value is stored?
What happens when you type ls?
what is "umask"?
What does $@ mean in shell?
How do I set bash as default shell mac?
Is shell scripting difficult?
What are the 3 standard streams in linux?