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 9123491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:21:12+00:00 2026-06-17T06:21:12+00:00

I just installed GMT4 (Generic Mapping Tools) from MacPorts and have run into some

  • 0

I just installed GMT4 (Generic Mapping Tools) from MacPorts and have run into some serious issues with terminal…
When using the ls command in terminal I get the following:

-bash: ls: command not found

To fix this I’ve tried many things that I read many different places online. I’ve changed the following files to include /usr and /bin:

~/.bashrc
~/.bash_profile
~/.profile

Doing so gave me back the sudo command which I had previously lost.
However, I still am not able to use ls in a new terminal window without manually exporting the path(“new session”). This has been causing problems when I’m running shell scripts that use system functions. So I’m starting to wonder what exactly those three files do and if maybe having three files doing the same thing is causing them to interfere with one another. If anyone can tell me where I need to add these PATHS that would be great; I dunno, maybe I can delete one of these files or something ELSE is conflicting. Right now I just run ” export PATH=$PATH:/usr” in each new terminal window and it works for that session.

I’m running Mac OS X 10.6 on a early 2011 MacBook Pro with 4GB of RAM.

Background for those who are interested:
My end goal is to use Relax to model viscoelastic relaxation in a mid-oceanic ridge system to come up with some sort of constitutive law or power-relation between slip magnitude and the location of greatest tensional stress in the lithosphere due to normal faulting.

  • 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-06-17T06:21:13+00:00Added an answer on June 17, 2026 at 6:21 am

    The Bash manual actually explains these files fairly thoroughly. However, the manual does not describe how these mechanisms are usually used in practice. What follows is a brief, abridged version of what is common best practice.

    .profile is read at login by both sh and bash.

    .bashrc is read by non-login Bash shells. By convention, .bash_profile sources .bashrc in turn.

    .bash_profile is read at login by Bash. If this file exists, .profile is not read. By convention, .bash_profile should source .profile if it exists.

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

Sidebar

Related Questions

I just installed JBoss and tried to run it from Eclipse. When I first
Just installed nodeJS and NPM and nodesupervisor via Terminal in OS 10.5.8. I have
I just installed xampp, to run some old program (created 2 or more years
I just installed FuzzyFinder for gvim, though for some reason it's using an ultra
I just installed Graphite & statsd to get some statistics for my web-application. It
Just installed VS2012 and run across a strange behavior by the one click publish
Just installed Nagios 3.2 and have it monitoring 4 or 5 windows hosts as
I just installed Emacs on my mac from here: http://emacsformacosx.com/ and that got rid
I just installed notepad++ and i am having some problems with macros in it.
Just installed MonoDevelop for Android 2.8.6.5 on Windows XP. When I try to run

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.