what is the command to find out which shell you are running?

Answer Posted / unix admin

'Rajhsekhar', 'Swapna' and 'Abdullah' these 3 users
answers also right 100% look at the following example:
using "ps"

/usr/users/operator=>ps
PID TTY S TIME CMD
1683270 pts/0 S 0:00.24 -ksh (ksh)
[operator] AT:/usr/users/operator=>sh
[operator] AT:${PWD}=>ps
PID TTY S TIME CMD
1683270 pts/0 S 0:00.24 -ksh (ksh)
1715181 pts/0 S + 0:00.01 sh
[operator] AT:${PWD}=>


using "echo $0"

/usr/users/operator=>echo $0
-ksh
/usr/users/operator=>sh
[operator] AT:${PWD}=>echo $0
sh
[operator] AT:${PWD}=>

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is {} in find command?

584


what is the advaantage of each user having its own copy of the shell?

2034


How do I use grep to find a file?

579


How do you repeat a command in terminal?

587


What is the use of egrep command in unix?

624






Does cp command overwrite files?

620


Write a command to kill the last background job?

618


How do you grep a case insensitive?

538


What is awk good for?

582


Which unix command lists files/folders in alphabetical order?

614


What is the use of cut command in unix?

690


What is $0 bash?

646


How to find $ai_serual resolved path by using unix

1024


What is the use of find command in unix?

578


Name the general commands in using unix os for a beginner?

623