How do I change the PATH variable in Linux?

How do I change the PATH variable in Linux?
Answer
To make the change permanent, enter the
command PATH=$PATH:/opt/bin into your home directory’s . bashrc file. When you do this, you’re creating a new PATH variable by appending a directory to the current PATH variable, $PATH . A colon ( : ) separates PATH entries.
 

Tìm kiếm

Back
Top