The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

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
⇧ How to adjust brightness without adjusting the hardware brightness Formatting Ubuntu 18.04  ⇩