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 |
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
Write a shell program to test whether a given number is even or odd?
What is the best shell scripting language?
How to enable the shell to know what program should be run to interpret the script?
c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l
What is the best scripting language?
What is a shell environment?
How to sort a result of Ls -l command based on columns. Ex. i want to sort 5th column from output of ls -l command.
what are special characters and explain how does text varies by the usage of single quotes,double quotes and back quotes?
Why should we use shell scripts?
Write a shell script to get current date, time, user name and current working directory.
Is shell scripting useful?