Apple Intelligence now features Image Playground, Genmoji, Writing Tools enhancements, seamless support for ChatGPT, and visual intelligence.

Apple Intelligence has also begun language expansion with localized English support for Australia, Canada, Ireland, New Zealand, South Africa, and the U.K. Learn more >

You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to run .command files

I'm trying to run a .command program on my mac and it says I don't have the appropriate access privileges. I've tried the chmod a+x and then the file but it doesn't work. how can i run it without getting access to all the os files. Thanks!

MacBook Pro with Retina display, OS X Mavericks (10.9), Crystalwell

Posted on Sep 10, 2014 4:38 PM

Reply
Question marked as Top-ranking reply

Posted on Sep 10, 2014 4:45 PM

Open Terminal in the Utilities folder. At the prompt enter: sudo with a space after it. Now drag the .command file into the Terminal window. Press RETURN. Enter your admin password when prompted. It is not echoed back to the window so type carefully. Press RETURN again.

3 replies
Question marked as Top-ranking reply

Sep 10, 2014 4:45 PM in response to ZackM3000

Open Terminal in the Utilities folder. At the prompt enter: sudo with a space after it. Now drag the .command file into the Terminal window. Press RETURN. Enter your admin password when prompted. It is not echoed back to the window so type carefully. Press RETURN again.

Sep 11, 2014 2:48 PM in response to ZackM3000

Sudo gives root access to the running process. This can be necessary depending upon the command and what it does. If you provide such access to a command you should be darn sure what is going to happen. I have no idea what your .command file is supposed to do nor why. But if it won't run without using "sudo," then that's what you must do to give it full root access (unless the script includes "sudo" for the command lines that must have it. In that case you would be prompted to provide your admin password for permission.)


Given the questions you are asking I would suggest you don't use this script until you find out more about what it does, why and how it does it, and why you should even be using it.

How to run .command files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.