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 does echo mean in scripting?
Explain about debugging?
What is the difference between a variable and value?
How to print the first array element?
c program which accept one argument as a directory name and prints all the file name along with its inode number and total count of the file in directory
How will you copy a file from one machine to other?
What does $# stand for?
How do I save a powershell script?
What is a shell script? Can you name some of its advantages?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
What are the different types of shell scripting?
What is a batch file used for?