Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 10410  / 2 Years ago, sat, may 21, 2022, 7:10:45

I added these lines to my .bashrc file:



export vertx_home=/anto/vertx/bin
export PATH=${PATH}:${vertx_home}/bin


after doing that. I get an error message like that for all command's I run, for example:clear,groovy :



Command 'clear' is available in '/usr/bin/clear'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
clear: command not found


How to recover from it?



I'm new to Ubuntu. Kindly help.



Thanks in advance.


More From » bash

 Answers
7

Two points:




  1. No need for the first 'export' command

  2. Looks to me you have got your vertx_home set wrong, as your effective path is: /anto/vertex/bin/bin - note the repetition of 'bin'



Suggest changing your .bashrc to read as follows:



vertx_home=/anto/vertx 
export PATH=$PATH:$vertx_home/bin


Close any open terminals for the change to take effect.


[#39244] Sunday, May 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
defendle

Total Points: 219
Total Questions: 131
Total Answers: 112

Location: Finland
Member since Sat, Nov 6, 2021
3 Years ago
;