How to create and edit bash_profile in mac ?

0 votes
17 views
asked Apr 19 in MacOX by anonymous
Hi

  I want to edit and save the Bash_profile on mac. Could you guys provide the valid commands to do this?

1 Answer

0 votes
answered Apr 19 by admin (8,115 points)

Try the below command to edit

 touch ~/.bash_profile; 

open ~/.bash_profile

Try this command to Exc 

source ~/.bash_profile

Alternatively,  ~/.bash_profile

More Editor option
nano ~/.bash_profile
mate ~/.bash_profile
vim ~/.bash_profile
...