How to execute commands on Mac

On Windows running a command from command prompt is straightforward. Will simply type the name of the exe file. For example command.exe (this will run the command/program).

On Mac, when the file is sitting in the current folder, the file will not run if you just provide the file name. You have to specify the complete path of the file in order to run it. Not sure why is this (may be safety?). If the file is in the current folder/directory, there is an easy trick. Simply provide the dot operator (.) followed by forward slash.

Example: cd /Applications/XAMPP/xamppfiles/bin
See what is the directory: Issue ‘ls’ command (without comma’s)
Notice there is : mysql command, to run this type


This entry was posted in Tutorials/Tips. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s