aywebdev
By:
aywebdev

Command not found for anything

April 16, 2016 667 views
Linux Commands

Hello!

Yesterday I could login and use the sudo apt-get commands, today I login and I see COMMAND NOT FOUND

https://gyazo.com/6aa1b5bce48d5a099b1fa620e08a2750

HELP! Please!

3 comments
  • What do you see as the output of these two commands?

    echo $PATH
    
    echo $SHELL
    
  • I'm having a similar issue now, where I cannot use many Linux commands, including zip, curl, wget.

    What was your solution here?

  • Just for future reference, anyone that has this "weird" error:

    Somehow, someone with root access to our droplet (possibly someone with SFTP access that didn't know what they were doing) had moved the /usr directory into the /var directory. It was just by blind luck I decided to try to look for the usr directory - and found it.

Be the first one to answer this question.