Log on to the Ubuntu interface ctrl + alt + f2. Because I am a virtual machine, you also need to change the virtual machine's hotkey to use it. After the command is used, enter the command line mode. After entering, try to modify the/etc/profile and/etc/environment files, but the Command requires this method: the cause of/usr/bin/sudo/usr/bin/vi/etc/profile is that the environment variable has a problem and the command path cannot be found.
Log on to the Ubuntu interface ctrl + alt + f2. Because I am a virtual machine, you also need to change the virtual machine's hotkey to use it. After the command is used, enter the command line mode.
After entering, try to modify the/etc/profile and/etc/environment files, but the Command requires this method:
/Usr/bin/sudo/usr/bin/vi/etc/profile
The reason is that the environment variable has a problem and the command path cannot be found.