What is the command for " how many shell is running in your
system or how many shell supported by your system " ?.
Answer Posted / 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 |
Post New Answer View All Answers
What is the meaning of $1 in shell script?
What is path variable bash?
What is a beat in a script?
How to print pid of the current shell?
What is awk in shell scripting?
What is shell prompt?
What is shell and shell script?
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
Explain how you Automate your application using Shell scripting.
How can I set the default rwx permission to all users on every file which is created in the current shell?
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
What is the use of a shebang line?
I want to connect to a remote server and execute some commands, how can I achieve this?
What is path in shell script?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?