Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I type bash in to linux cli, it gives me bash-3.2$ so what does it do?

share|improve this question

closed as off topic by squillman, Iain, jscott, MDMarra, Chopper3 Apr 20 '11 at 15:05

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 6 down vote accepted

When you run bash you are creating a new bash subshell within your current shell (even if your current shell was already bash), the $SHLVL environment variable will also be incremented within that new shell.

share|improve this answer

It's a shell - think of it like the cmd window in Windows(if that's what you're used to). It allows you to execute commands. I would have a look through the wikipedia entry as a starting point.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.