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

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.
StephenMcGowanAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
woolmilkporcConnect With a Mentor Commented:
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
 
woolmilkporcCommented:
cd /usr
mkdir -p local/bin
0
 
StephenMcGowanAuthor Commented:
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
All Courses

From novice to tech pro — start learning today.