Determining which shell is in use
I'm guessing i'm going for the stupidest question of the month award, but:
How do i work out which shell i'm working in? I know that the default shell is set for ever user, and kuser shows me what shell is used for any particular user, but i notice that if you working as myself and i change to root (via su) coloring and so forth disappears (as in file type highlighting). How do i check which shell i'm in, and is this change in color an intentional mode change ?? |
Re: Determining which shell is in use
Hi chakkerz,
try the ps command. If you look at the output below it shows you that bash is the shell running for both users (gabe and root). also "echo $SHELL" will tell you what shell is running. As far as the colors go, I'm not sure what the problem is. try typing export to see if the shell variable LS_COLORS is set or if the shell variable COLORS is set. you can do this by typing: echo $LS_COLORS echo $COLORS [/CODE] [root@koso gabe]# whoami root [root@koso gabe]# ps PID TTY TIME CMD 860 pts/0 00:00:00 su 861 pts/0 00:00:00 bash 1193 pts/0 00:00:00 ps [root@koso gabe]# exit exit [gabe@koso gabe]$ whoami gabe [gabe@koso gabe]$ [gabe@koso gabe]$ ps PID TTY TIME CMD 818 pts/0 00:00:00 bash 1195 pts/0 00:00:00 ps [gabe@koso gabe]$ [/CODE] --gabe |
Ahh ... sweet ... i knew it had to be something simple ... Thanks for that.
|
All times are GMT -5. The time now is 04:29 PM. |