Solved

How do I determine which shell I am in

Posted on 2011-09-22
2
304 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 38

Assisted Solution

by:Gerwin Jansen, EE MVE
Gerwin Jansen, EE MVE 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
pauing printer deamon in AIX 10 66
LastLogonTimeStamp Attribute 7 49
Linux : can't create transaction lock error 1 86
MarkLogic 1 103
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

730 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