Views:
3,163
Votes: 6
✅ Solution
Tags:
permissions
sudo
environment-variables
bashrc
Link:
🔍 See Original Answer on Ask Ubuntu ⧉ 🔗
URL:
https://askubuntu.com/q/1081545
Title:
How to add /usr/bin to path after I mistakenly removed it (sudo and nano are no longer in path)
ID:
/2018/10/06/How-to-add-_usr_bin-to-path-after-I-mistakenly-removed-it-_sudo-and-nano-are-no-longer-in-path_
Created:
October 6, 2018
Edited: January 10, 2023
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
You can prefix the commands with the path:
/bin/nano ~/.bashrc
or (for files that need superuser privilege to edit)
/usr/bin/sudo nano /etc/bash.bashrc