我在Mac上對這個區域有點新。我昨天做了我的.bash_profile,沒有任何問題。現在,當我打開它時,textedit說它已鎖定,並且不讓我解鎖它。我嘗試使用chmod 644來更改權限,但這沒有幫助。我的.bash_profile被鎖定。我如何編輯它?
我在這裏錯過了什麼?
我在Mac上對這個區域有點新。我昨天做了我的.bash_profile,沒有任何問題。現在,當我打開它時,textedit說它已鎖定,並且不讓我解鎖它。我嘗試使用chmod 644來更改權限,但這沒有幫助。我的.bash_profile被鎖定。我如何編輯它?
我在這裏錯過了什麼?
給自己寫的權限爲該文件:
/usr/bin/sudo /bin/chmod u+rwx /Users/yourusername/.bash_profile
/usr/bin/sudo /usr/sbin/chown yourusername /Users/yourusername/.bash_profile
賽普拉斯Frankenfeld回答了在
Cannot edit bash_profile on Mac OsX [closed]
須藤CHOWN your_user_name〜/ .bash_profile中
我得到這個錯誤chmod:/Users/duraiamuthan/.bash_profile:沒有這樣的文件或目錄 – 2015-05-20 11:31:32