Mac command line for Windows Users

This is how to use the command line on a Mac to get information that you may occasionally need. It will be extended as I come across more that I find useful.


The path on a Mac is stored as an environment variable, just as in Windows. In order to see what it currently is use

echo $PATH

The path is stored in /etc/paths.d directory and that file can be edited to update the path

Path to an Executable

This command tells you where an executable is and can be used for debugging purposes

which <executable>



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Steve Ellwood

Senior Integrations Officer at Doncaster Council Any views expressed are entirely my own.