What is "bash-3.2#" on Mac Terminal?

Joined
Dec 9, 2014
Messages
246
Reaction score
0
Hi
Does anyone know what is this "bash-3.2#"? I am trying to get to root directory using terminal with "cd /" but it still give me "bash-3.2#".

Why like that? Anyone can help?
 

guanyu158

Senior Member
Joined
Feb 17, 2003
Messages
1,369
Reaction score
0
Hi
Does anyone know what is this "bash-3.2#"? I am trying to get to root directory using terminal with "cd /" but it still give me "bash-3.2#".

Why like that? Anyone can help?

it's the command line prompt. your command actually starts after #. so you are using bash shell version 3.2. you can customize it or just don't bother.
 
Last edited:
Joined
Dec 9, 2014
Messages
246
Reaction score
0
it's the command line prompt. your command actually starts after #. so you are using bash shell version 3.2. you can customize it or just don't bother.

Thanks for your reply.

I want to get to root level so I keyed in my password after keying sudo -s.

It gave me bash3.2# <= does this means it's at root level? It don't look like this before.

I google this "bash 3.2#" and there's many who asked the same question. But the patch/advise are very confusing. Am not a programmer.

TIA
 
Last edited:

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,497
Reaction score
1,255
Hi
Does anyone know what is this "bash-3.2#"? I am trying to get to root directory using terminal with "cd /" but it still give me "bash-3.2#".

Why like that? Anyone can help?

"root" may refers to the unix user named "root" or the "root" directory at "/"

"sudo -s" without specifying any command after it will promote your current user (if allowed) to "root" unix user.

To know what is your current user at the command session, you can type "id" to print it out.

Normally, the command prompt "$" is given to non-privileged unix user, and '#' is given to superuser(root), however, this can be changed and not absolute.
 

szeli

Arch-Supremacy Member
Joined
Mar 24, 2003
Messages
21,145
Reaction score
3,004
"pwd" will show u where u r in e filesystem
"whoami" will show current user
 

szeli

Arch-Supremacy Member
Joined
Mar 24, 2003
Messages
21,145
Reaction score
3,004
forgot to add, if u want e bash prompt to look different (e.g. different color etc...) u can customize using e .bash_profile file for each individual user
 
Joined
Dec 9, 2014
Messages
246
Reaction score
0
"pwd" will show u where u r in e filesystem
"whoami" will show current user

"root" may refers to the unix user named "root" or the "root" directory at "/"

"sudo -s" without specifying any command after it will promote your current user (if allowed) to "root" unix user.

To know what is your current user at the command session, you can type "id" to print it out.

Normally, the command prompt "$" is given to non-privileged unix user, and '#' is given to superuser(root), however, this can be changed and not absolute.

forgot to add, if u want e bash prompt to look different (e.g. different color etc...) u can customize using e .bash_profile file for each individual user

Thank you guys!!! You're the best!
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ. Forum members and moderators are responsible for their own posts.

Please refer to our Community Guidelines and Standards, Terms of Service and Member T&Cs for more information.
Top