Linux environment variable to add

Just getting started with linux often encounter a problem, see other people are so smooth operation command in the video, and to their environment an execution on the error, such as bptestbpcd -client XXX  

-bash: bptestbpcd: command not found,

which bptestbpcd     

/usr/bin/which: no bptestbpcd in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin: /usr/bin:/root/bin)

The inspection system does not bptestbpcd this is not a command, but not added to the environment variables, and so added to the environment variable.

1, vim ~ / .bashrc (for the current user)

Add the final export PATH = "/ usr / openv / netbackup / bin / admincmd: $ PATH"

2, vim / etc / profile (for all users)

Add the final export PATH = "/ usr / openv / netbackup / bin / admincmd: $ PATH"

With immediate effect, the implementation of source ~ / .bashrc or source / etc / profile can be.

 

 

Guess you like

Origin blog.csdn.net/haiziccc/article/details/90598802