I was trying to get the finger command to work on Ubuntu as I was learning Linux. Several hours later, Ubuntu does not start properly any more.
When I start Ubuntu,
I get lines and lines of:
Command 'uname' is available in the following places
* /bin/uname
* /usr/bin/uname
The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable.
uname: command not found
Command 'lesspipe' is available in the following places
* /bin/lesspipe
* /usr/bin/lesspipe
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
lesspipe: command not found
Command 'dircolors' is available in the following places
* /bin/dircolors
* /usr/bin/dircolors
The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable.
This goes on and on and ends with:
Command 'tr' is available in the following places
* /bin/tr
* /usr/bin/tr
The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable.
tr: command not found
-bash: export: `=/home/mpl/miniconda3/bin/x86_64-conda-linux-gnu-strings': not a valid identifier
Command 'uname' is available in the following places
* /bin/uname
* /usr/bin/uname
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
uname: command not found
$ echo $PATH
prints:
/home/mpl/bin:/home/mpl/bin:PATH
$ export PATH=$PATH:/usr/bin
$ sudo nano /etc/environment
prints:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"