Solved

usr/local/bin in UNIX on Mac OS X 10.5.7

Posted on 2009-06-27
3
1,116 Views
Last Modified: 2013-12-20
Hi,

I'm trying to use the directory /usr/local/bin for some of my programming needs.

Having recently bought a mac, i'm kinda brand new to UNIX and the whole mac way of working.

Entering Terminal, i first type "cd / " into the command line followed by "ls".

This generates a list of everything in my root.

I can see usr is here, so going into usr (cd usr), i generate the list:

X11
X11R6
bin
lib
libexec
sbin
share
standalone

but there is no "local" (i.e. /usr/local/bin).

can anybody help me with this? would be much appreciated.

Thanks.
0
Comment
Question by:StephenMcGowan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 24728700
cd /usr
mkdir -p local/bin
0
 

Author Comment

by:StephenMcGowan
ID: 24729202
hi woolmilkporc

I've tried this method, but receive the message:

stephen-mcgowans-macbook-pro:usr stephenmcgowan$ mkdir -p local/bin
mkdir: local: Permission denied

Stephen.
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 24729238
Which user are you logged in as?
You need to be 'root' to run the above command.
Either login as root or try
cd /usr
sudo mkdir -p local/bin
'sudo', if installed and properly configured, allows you to issue commands with root privileges.

wmp
0

Featured Post

Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This article outlines the struggles that Macs encounter in Windows-dominated workplace environments – and what Mac users can do to improve their network connectivity and remain productive.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question