3

LINUX中查看、添加、删除PATH以及永久添加PATH(转)

 1 year ago
source link: https://titron.github.io/2023/02/10/linux_add_delete_env/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

LINUX中查看、添加、删除PATH以及永久添加PATH(转)



LINUX中查看、添加、删除PATH以及永久添加PATH

# list PATH
$ echo $PATH

# add new to PATH
$ export PATH=$PATH:新添加的路径

# delete something in PATH
$ echo $PATH  #if PATH=路径1:路径2:路径3:路径4
$ export PATH=路径1:路径2:路径4

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK