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: 2,684     Votes:  6     ✅ Solution
Tags: permissions   sudo   environment-variables   bashrc  
Link: 🔍 See Original Answer on Ask Ubuntu ⧉ 🔗

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: December 3, 2023    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
⇧ Where is "journalctl" data stored? Formatting Ubuntu 18.04  ⇩