Home > OS > Linux how to delete the PATH variable value
Linux how to delete the PATH variable value
Time:10-02
As shown in figure, how to put the circle of this value to delete, I think the way to my other software search path
CodePudding user response:
Directly give it to the correct values
CodePudding user response:
User level path to modify the user folder. Profile modification/etc/profile file system level
CodePudding user response:
The PATH of the variable is actually boot automatically set, if you want to temporarily change its value only need the command line PATH='... 'set directly, If you want to make a permanent change its value, need to modify some files, but also points the user, if it is used for the user to change, you need to use the root user to modify/etc/profile or/etc/bashrc (these two files, only need to modify a different distribution file name may be slightly different), If want to change is only for the current user, then modify the user home directory. The profile or the bashrc file, As to how to modify, according to the need to decide on their own, such as to make the PATH of a certain field is not appear, you can try to find the above four file where to add this field, to save the field is deleted, the file will not take effect immediately after the modification of preservation, but after the next system restart, can come into effect, if is to add fields to the PATH, will be the source command to make it effective immediately,