Solved

How do I determine which shell I am in

Posted on 2011-09-22
2
301 Views
Last Modified: 2013-11-17
How do I tell if I am in Bash or ksh

What is the default shell for AIX 6.1
0
Comment
Question by:Los Angeles1
2 Comments
 
LVL 21

Accepted Solution

by:
Papertrip earned 250 total points
ID: 36582003
How do I tell if I am in Bash or ksh
echo $0

Open in new window

What is the default shell for AIX 6.1
ksh
0
 
LVL 37

Assisted Solution

by:Gerwin Jansen
Gerwin Jansen earned 250 total points
ID: 36582030
Default shell is ksh, you can view 'your' shell by just giving a 'ps' command.

Have a look at /etc/passwd for the shell that's configured for your account. For example:

paul:!:201:1::/home/paul:/usr/bin/ksh
jdoe:*:202:1:John Doe:/home/jdoe:/usr/bin/ksh
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Solaris OS patch 3 28
unix scripting question 1 76
Oracle Finace 3 46
Linux "time" command output redirection 16 75
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now