How to use command line on macOS
A friend of mine (who used to use Windows) has recently purchased a Mac and asked me how to use the command line on macOS. I thought I'd share here what I sent him:
- 99% of commands are identical to Linux ones, which is great as there are so many great material about it available on the Internet.
Terminal.app
from macOS is ok but far from ideal. I (and 90% of software engineers I know) use iTerm2. It's light (3mb), free, open-source, has a better UI than the native one and lots of useful features! Best terminal I've ever used.- There's an awesome Command Line Cheat Sheet made by the Git-tower team, check it out!
- Finally, if you speak Portuguese, I've recorded a screencast explaining how to create scripts on both macOS and Linux (similar to BAT files on Windows):