[LINUX] [Super Beginner] [Tired Intermediate] When "command not found" or "command not found" is displayed


After installing CentOS and setting up ls update pip ,,, suddenly, "command not found" is repeated, and I search the net ** No way ** cause. It's a little embarrassing, but I'll write it down. I was crushed for half a day with this. .. ..

Conclusion (embarrassing, pathetic.)

Click Copy Code Block and paste it on the command line. Run. → Command not found Move the cursor to the upper right of the example below![Untitled.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/362672/7d0825af-66fc- 5c20-ac4a-5b3287de4738.png) Doesn't this come out? You can copy and paste by pressing this.


$ sudo apt-get update

The correct answer was $ at the beginning. There is no problem if this is erased. The copy button in the code block will copy up to $.

What to do if the command is not found

Since it comes out by searching the net, I will only list it here. Usually the solution is here.

  1. PATH: Added in environment settings
  2. After setting the PATH, restart or execute the command to enable it immediately
  3. Not installed: Occurs with a specific command
  4. ** After copying, delete the first $ and execute **


It worked fine as long as I was typing while looking at the command. And, of course, I didn't select the first $ because I often copied and pasted by tracing the command with the cursor. There is no problem up to this stage. I did it after I knew the copy button of the code block. Failure ( ̄ △  ̄;)

Recommended Posts

[Super Beginner] [Tired Intermediate] When "command not found" or "command not found" is displayed
Command is not found in sudo
command not found: django-admin
When "ERROR: HTTP is not supported." Is displayed in mpsyt
Whether it's super or not, python is pretty beginner. I hate file operations too much.
When Pydev is not displayed even after adding Pydev5.2 to Eclipse (2016/8/30)
What to do when Japanese is not displayed on matplotlib
[Beginner] What to do when "[Errno 2] File b'test.csv' does not exist: b'test.csv" is displayed when reading pandas csv
When I start service with systemd, I get command not found even though the path is passing
Exception: Jupyter command `jupyter-lab` not found.
When the Linux command $ yum -y install gives an error (yum: command not found)
Bug that says'val_loss' is not found when using Early Stopping in pytorch-lightning (