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

link|improve this question

feedback

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

Questions on Server Fault are expected to generally relate to servers, networking, or desktop infrastructure, within the scope defined in the faq.

2 Answers

up vote 4 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.

link|improve this answer
feedback

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.

link|improve this answer
feedback

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