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 happens when you type ls?
How do you know which shell I am using?
Dear All, Can anybody tell me how to predefind no. of selected rows from a text file.
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
What is a boot block?
How do you find out What is your shell?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
Which shell is the best?
Is scripting and coding the same thing?
What's the difference between scripting and coding?
wats the she bang statment with syntax?
The information of the two files should be redirect to Third file in such a way that, the third file contain the information like this. 1st line in third file should be from 1st file 2nd line in Third file should be from 2nd file 3rd line in Third file should be from 1st file 4th line in Third file should be from 2nd file - - so on