M
M
mouLL2021-06-07 13:40:26
linux
mouLL, 2021-06-07 13:40:26

How to complete the PATH variable in Linux?

I want to add paths to the PATH variable, I start editing the autoload file /.bashrc through nano, but I don’t find PATH there. Am I looking in the wrong place or do I need to manually register from scratch?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2021-06-07
@mouLL

in .bashrc you can insert the following construction:
export PATH="/newpath/bin:$PATH"
thus you will add "/newpath/bin" to the existing list of paths in $PATH

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question