I'm a bit new to this area on my Mac. I made my .bash_profile yesterday without any problems. Now when I open it, textedit says it's locked and does not let me unlock it. I tried using chmod 644 to change the permissions, but that didn't help.
What am I missing here?
The . bash_profile files on Mac are located in the Finder app's home directory. It is usually invisible. You can press "Command" + "Shift" + "." together to find the hidden files on your Mac.
bash_profile . This will open your profile in a simple text editor. Functions like saving changes work as they would for any normal Mac program, with the docked menu bar. So exiting the editor would just be cmd+q .
Give yourself write permissions for that file:
/usr/bin/sudo /bin/chmod u+rwx /Users/yourusername/.bash_profile
/usr/bin/sudo /usr/sbin/chown yourusername /Users/yourusername/.bash_profile
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With