I'm starting to learn python and I've been having to use my terminal a bit; however, all tutorials I have found online show the login info and input symbol as user-macbook:~name$
, as well as inserting $ for running commands. However, my terminal displays user@Macbook-Air ~ %
, and the usage of $ is not computed. What could be wrong?
Thanks!
MacOS – Why does the terminal show % instead of $? (macOS Big Sur)
macosterminal
Related Question
- Mac – How to properly use MacVim on OS X? (And, to delete the duplicative *.app via Finder)
- MacOS – HD does not show up when attempting to reinstall OS X (El Capitan)
- MacOS – LDAP users in Catalina cannot log in – CRAM-MD5 error in opendirectoryd
- MacOS Big Sur Terminal hangs and no prompt appear
- MacOS – Change icons on macOS Big Sur
- MacOS Finder User Account Folders Icon – Default Folder Icons Missing After User Account Rename
- MacOS – Install macOS Big Sur using Terminal
- Delete Terminal History – How to Delete Terminal History in macOS Big Sur
Best Answer
I can't find an accepted answer to dupe this to, and since it's always been answered in comments, I'm going to make it a real answer so we can point people here. (Yes, it should be on Ask Different, but it gets asked here a lot.)
See macOS different Prompt meaning `%` vs `$` and Updated my shell to zsh, command prompt now ends in a % for a couple of recent versions.
You've switched from bash to zsh (this became the new default in 10.15), and zsh has a different default prompt. The commands you find online will still be fine. You don't type the leading
$
. That's just indicating where the prompt is (and in zsh it's%
).If you wish to switch back to bash, use the following command to change your default shell: