mac how to get current path code example Example: macbook current path # pwd stands for print working directory pwd