If you're using macOS and the Terminal software, you can get the source /.bash profile: command not found the issue. Mac OS has the bash terminal and associated configuration files, such as the .bash profile, since it is based on Unix.

The .bash profile file is a system-wide standard for setting the bash profile and characteristics for the current user. Then you may wonder what a bash profile is and why you want to use one on a Mac. Those interested in learning more about bash profile on Mac may do so by reading on.

On A Mac, What Exactly Is A Bash Profile?

Simply said, a bash profile is a file in your Mac's user directory that contains settings for the Bash shell. Before Terminal starts your shell environment, the bash profile on your Mac loads, including all of your startup setup and preferences for the command line.

It allows you to customize the Terminal prompt, alter the font and background colors, create shortcuts to frequently used commands, and much more.

A bash profile on a Mac is a powerful resource that may greatly improve the usability of the Terminal program. It can help you get more done in less time and make your computer more aesthetically pleasing.

Create A Bash Profile

A .bash profile is not created automatically by a standard OS X installation. The ability to execute scripts directly from the command line is a useful skill to have.

Launch the Terminal.

To go to your root directory, use "cd /" in a terminal.

Just type "touch.bash profile" to create a new file.

Use your preferred editor to modify the settings in the .bash profile, or simply enter "open -e.bash profile" to open the file in TextEdit.

Simply reloading your .bash profile with "source.bash profile" will bring any newly-added functions up to date.

Open Your .Bash Profile

We can open the freshly created .bash profile in the terminal using the nano keyword command.

To create a custom bash profile, use $ nano .bash profile.

A new tab or window will appear with your .bash profile file. The various keys are listed at the bottom, and the file's name is shown in the middle of the window's upper half.

List The .Bash Profile

You won't be able to locate the .bash profile by looking for it in File Explorer since it is set to be hidden. Conversely, the list command will allow you to locate the freshly made .bash profile file by searching for:

$ ls –la

Bash Profile

Edit Your .Bash Profile

It is not suggested that regular Mac users alter bash profile on Mac by themselves since doing so might lead to unexpected consequences. However, if you are an experienced Mac user and would want to modify your bash profile, you may do it in one of the ways described below.

The vi command allows you to make the following changes to your .bash profile in the Terminal: vi ~/.bash_profile

However, if your Mac's bash profile is huge, you may find it challenging to change inside the Terminal. Therefore, the bash profile may be edited in TextEdit in such a scenario.

Open TextEdit, a simple text editor. To access the file, use Command + O on your keyboard.

Proceed to your home directory.

A bash profile may be inaccessible because it is buried deep inside a user's home directory. Use the Command + Shift + dot keys to access the concealed folder.

Navigate to your .bash profile and edit it as needed before saving.

You may also access the bash profile and make changes with the following short command line:
open -a TextEdit.app ~/.bash_profile

Delete Your .Bash Profile

It's easy to remove the bash profile on a Mac:

On macOS, you may remove the bash profile by using the Finder.

Navigate to the user's home directory.

Verify that you can access the bash profile. If you don't see the bash profile file, enter Command + Shift +.

Choose the bash profile, and then hit Delete or Command + Delete to remove it.

How Do I Find Bash Profile On Mac?

The bash_profile file is automatically loaded into the active Terminal window from the .bash directory. This configuration file belongs in your home directory; on my MacBook Pro, it can be found at /Users/al/.file./Users/al/. The bash_profile is the name of the bash profile.


There is always demand for macOS and the Terminal, no matter where you are. Your own app is software that you can make. When working with a bash profile, you may safely disregard the edge situations and still get success.

DoYourData Products

Do Your Data Recovery for Mac

Do Your Data Recovery for Mac

The reliable Mac data recovery software to recover deleted or lost files.

Free Trial
Super Eraser for Mac

DoYourData Super Eraser for Mac

Permanently shred files or wipe hard drive to prevent data recovery on Mac.

Free Trial
DoYourClone for Mac

DoYourClone for Mac

Clone HDD, SSD, Mac OS, external disk, USB drive, and more under Mac OS.

Free Trial