how do i open a .command file that i have in downloads?

my professor posted a .command file on our school website for us to download but i can't seem to get it to open. the terminal pops up and i'm not sure what to type in it

Posted on Jan 24, 2013 1:19 PM

Reply
7 replies

Jan 24, 2013 3:19 PM in response to rghi

If you trust your professor. What is the script supposed to do? You can open it with a text editor and verify what commands he put in the script. Sudo will run the script as superuser (root access). If you don't know what the commands in the script do, do the second suggestion I posted in the previous reply: "chmod 777 yourfile.command" followed by "./yourfile.command". This will give your user account, your group, and other users access to read, write and execute the file. If there are commands in script that try to access directories or files that you do not have access to, they will fail.


What kind of class is this? Most shell scripts end in .sh, so this seems to be something specifically created for Mac OSX users. If you are in a computer/IT-related degree program, you should probably learn what the shell commands do anyway.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

how do i open a .command file that i have in downloads?

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