When you shut down today, you use shutdown to do this, but a "Bash:shutdown:command not found" error message appears. This makes me very confused, this command in the system is sure to exist, but why this problem, after checking the data, found that the system did not find the path of the command.
For resolution of such problems, you need to look at the path to the command, and then modify the environment variable configuration file. bash_profile.
First look at the location of the shutdown command, the path, the input statement Whereis shutdown, and find its location.
Then look at the environment variable configuration file. Bash_profile, which is a hidden file under the user's home directory file, can be viewed using Ls-al. Take a look at whether the path path contains the paths that were previously found in the shutdown (which should not normally be). At the end of the file, add path= $PATH: xxxx. Where, "xxxx" for the path of shutdown, here note, add is the shutdown lookup path, not the absolute path, otherwise it is not found. That is, if shutdown in/sbin/shutdown, then xxxx is/sbin. Save exit.
Then execute the file with source ~/.bash_profile. This will allow the shutdown to be used normally.
Solve "Shutdown:command not found" problem under Linux