I modified .profile file, by adding some PATH to a program to it. I now cannot login to my ubuntu os. I tried to access via ctrl + alt+ fn but the console does not recognize any command I type. It just says "-bash : no such file or directory". I need to access my OS. How can I do that?

  • Until you fix your PATH, you may need to give the full path to commands e.g. /bin/nano ~/.profile – steeldriver Dec 19 '18 at 15:33
  • 1
    @steeldriver can you move comment to an answer. – ctrl-alt-delor Dec 19 '18 at 17:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.