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 |
What is difference between shell and bash scripting?
What is echo in shell?
What lives in a shell?
Write the syntax for "if" conditionals in linux?
Dear All, Can anybody tell me how to predefind no. of selected rows from a text file.
Calculate a real number calculation directly from the terminal and not any shell script.
Write a shell script to get current date, time, user name and current working directory.
What are "c" and "b" permission fields of a file?
How to check if a directory exists?
how to get part of string variable with echo command only?
I want to upload a file to remote server through ftp daily.Can anyone suggest how to make a shell script for that.I hv credentials for that ftp
shell script for reverse the string