Monday, May 6, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 3535  / 2 Years ago, fri, june 3, 2022, 6:17:28

I was trying to add something to the PATH with :



export PATH=/user/home/sbt/bin


but I removed all of the content of PATH and I can not run any command on the terminal even ls ! So what should I do ? Can I fix it ?


More From » command-line

 Answers
6

Close the terminal app, and open a new one. The variable will be reset to its original state then.



If you're on a virtual terminal, and not running gnome-terminal or similar under X11, then you can log out and log back in again, to reset the variables. You can type exit to log out, or press Ctrl+D.


[#32035] Friday, June 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mouedi

Total Points: 420
Total Questions: 109
Total Answers: 116

Location: Philippines
Member since Wed, Aug 19, 2020
4 Years ago
mouedi questions
Mon, Mar 28, 22, 20:06, 2 Years ago
Sat, Dec 3, 22, 15:04, 1 Year ago
Thu, Mar 10, 22, 05:12, 2 Years ago
Wed, Jul 20, 22, 15:05, 2 Years ago
;