How to create and edit bash_profile in mac ?

0 votes
asked Apr 19, 2017 in MacOX by anonymous

  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, 2017 by admin (8,135 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