10 Must Know Terminal Commands For Mac Devs

-Photo cred: Apple Insider

Change Directory

Command: cd "path" or "path/subpath"

Print Working Directory

Command: pwd

Listing Directory

Command: ls

Make Directory

Command: mkdir "path"

Remove Directory

Command: rmdir "path"

Remove Directories & -recursive flag

Command: rm -R "path"

Super User Do

Command: sudo "file"

Copy file Command: cp "file" "new-file"

Command: cp "file" + "new-file"

Move file to Directory

Command: mv "file" + "path"

Clear Terminal

Command: clear

--

--

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
Steven Wu

Steven Wu

I’m a NYC based full stack developer and a part-time gaming nerd https://www.linkedin.com/in/stevenwubc/