我仍然在學習CLI及其來龍去脈,尤其是這個.bash_profile。我對我正在學習的東西感到不知所措。權限在編輯.bash_profile時被拒絕
無論如何,我可以訪問.bash_profile。如果我做nano ~/.bash_profile
那麼文件出現,我可以自由編輯。然後我試圖addingin我應該包括行:
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
然而,當我試圖保存文件(或任何.bash_profile是),我收到以下錯誤:[ Error writing /home/myname.bash_profile Permission denied ]
忘記提及我以root身份登錄,當我嘗試 – simplycoding
更改權限並嘗試編輯時。 – Sandeep
同樣的錯誤 – user1735921