Glass Onion Blog

Cheat sheets, post-its and random notes from the desk of a programmer

Posts Tagged ‘fedora core 5’

Linux – How to find out which Shell you are using?

Posted by walrus on July 21, 2008

Here are three quick ways to find out which shell you are currently using:

Method 1:

command:

# echo $SHELL

output:

/bin/bash

Method 2:

command:

# echo $0

output:

-bash

Method 3:

command:

# ps -p $$

output:

 PID TTY               TIME CMD
1447 tty1          00:00:01 bash

Posted in Software, Technology, linux | Tagged: , , | 1 Comment »