Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to know in which shell you are in?

Status
Not open for further replies.

pd

Full Member level 1
Joined
May 23, 2006
Messages
99
Helped
5
Reputation
10
Reaction score
3
Trophy points
1,288
Location
India
Activity points
2,243
Hi can any body tell me the command to know in which shell you are in?Suppose I am a user and I don't have the root access.Then can I change the permissions of my friend if I am in the same group?What settings do I need for that?Another problem is I am sourcing a file in which there are some alias commands.But even if I source the file(mode is 777) still those aliases are not set.Can anybody suggest me a probable soltion for that.If I type them indivisually on the screen they work fine.
Thanks in advance.

Added after 11 minutes:

Just now I got the solution for the 1st one.It's $ echo $SHELL .But I need answer for other qns.
 

chsh can help. Just man chsh.
 

Every linux shell sets $SHELL variable.
Run in console this command:

echo $SHELL and you'll have an answer.

If you are using bash, you'll have something like this: "/bin/bash", for csh you'll get "/bin/sh" and so on.

Hope this helps.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top