1. When executing the command, it prompts -Argument list too long

When I was installing the software today,
I had to execute the path variable at the end and accidentally put the command source /etc/profile into the profile,
and then an error occurred. I was very unhappy. I
Insert image description here
was a little panicked at the time. I searched all over Baidu.
Finally, I had no choice but to ask the boss to come forward.
Two commands were enough to get it done.
1. First, confirm whether the variable can be viewed and execute echo $PATH. The result is as shown in Figure
Insert image description here
2. Execute unset PATH
(my understanding) This means deleting variables)
Insert image description here
3. Execute /usr/bin/vim /etc/profile to enter the interface and delete source /etc/profile
4. Re-open another connection window and find that it is normal (I used xshell to connect).
Insert image description here
So far this problem solve

Guess you like

Origin blog.csdn.net/Lcongming/article/details/123365231