Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
sudo - command not found
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="vansmith" data-source="post: 1677996" data-attributes="member: 71075"><p>Do you have a file called .bash_profile or .bashrc in your home directory (given that it starts with a ., it will be hidden). What do you see if you execute the following?[code]ls -a[/code]</p><p>If you don't have a .bash_profile, a simple solution to this issue is to create a file called .bash_profile in your home directory with the following contents:[code]PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"</p><p>export PATH[/code]Restart Terminal and you should be good to go.</p></blockquote><p></p>
[QUOTE="vansmith, post: 1677996, member: 71075"] Do you have a file called .bash_profile or .bashrc in your home directory (given that it starts with a ., it will be hidden). What do you see if you execute the following?[code]ls -a[/code] If you don't have a .bash_profile, a simple solution to this issue is to create a file called .bash_profile in your home directory with the following contents:[code]PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin" export PATH[/code]Restart Terminal and you should be good to go. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
sudo - command not found
Top