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
is this growing field and what is average package in this?
How to get the first line from a file using just the terminal?
What is the lifespan of a variable inside a shell script?
How do I run a shell script on a mac?
What is the conditional statement in shell scripting?
What is another name for a bash shell script that you might see?
What are the default permissions of a file when it is created?
What is path in shell script?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
How do you debug a script?
How can we find the process name from its process id?
How to replace following lines, catch (DAOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } catch (BOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw e; } catch (Exception e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } Needs to be changed in to, catch (DAOException e) { AppException.handleException (null, null, e, null, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); } catch (BOException e) { AppException.handleException (null, null, null, e, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 0); } catch (Exception e) { AppException.handleException (null, null, null, null, null, e, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); }
Is shell scripting a programming language?
How do you find out What is your shell?
how will you find the total disk space used by a specific user?