Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1051091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:52:31+00:00 2026-05-16T16:52:31+00:00

This might be a noob question, but I need help. I screwed up my

  • 0

This might be a noob question, but I need help. I screwed up my terminal by trying to alter my path variable using the following command:

$ sudo nano .profile

Before I did that, if I were to type:
$ echo $PATH

I would get: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

When I opened .profile in nano it told me that the file didn’t exist. I figured that made sense, since I had never edited this file before. I proceeded to enter a path to a directory I was using for a php framework and saved the file.

After I saved the file, I noticed that none of my bash commands are working. Now I can’t do anything from the terminal. I can’t even edit .profile in nano because it says -bash: nano: command not found

I’m clearly new to working with the terminal. I feel completely lost. Please provide some guidance on how to restore the terminal to working condition.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:52:32+00:00Added an answer on May 16, 2026 at 4:52 pm

    Use absolute paths.

     $  /usr/bin/sudo /usr/bin/nano .profile
    

    If you add something to a path, never just do

     PATH=/path/to/something
    

    instead do

     PATH=$PATH:/path/to/something
    

    By the way, you shouldn’t/don’t have to use sudo to edit your own file, such as .profile. Use sudo only when you need to edit the file which doesn’t to belong to your account.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This might sound like a noob question but this is the first time I'm
This might be a noob question, but can't find an answer anywhere. I have
Sorry, this might be a basic/stupid/noob question - I am just trying to tweak
This might sound like a noob question, but are: string var; if (var ==
this might be quite a newbie question, but i need to process a certain
This might seem like a stupid question I admit. But I'm in a small
This might be a bit on the silly side of things but I need
This might seem obvious but I've had this error when trying to use LINQ
This might be an interesting question. I need to test that if I can
This might sound like a little bit of a crazy question, but how can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.