FG
💻 Software

How to have full directory path always shown in mac terminal (like linux terminal)

Fresh6 days ago
Mar 15, 2026138833 views
Confidence Score1%
1%

Problem

In my ubuntu terminal I have always current directory shown completely. Just like this: blabla@blublu:~/music/my_album/classical/beethoven$ But in my Mac (Mac OS X 10.6.5) terminal does not show the full path and it is like this: blabas-MacBook-Pro:classical beethoven$ Is there anyway that I change mac terminal behavior to act like linux terminal?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to have full directory path always shown in mac terminal (like linux terminal)

Low Risk

To let bash return "user@hostname:path/to/directory$" as your prompt, add the following line to your ~/.bash_profile: or if you like having a space between the $ and the command to make the changes take effect immediately, run the following command in every open window (or restart Terminal): EDIT: A list of available strings can be found in the paragraph "PROMPTING" in the man page for bash ( ): PROMPTING

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment