Basic filesystem operations
It’s time to dive into the foundational Unix commands you’ll use every single day as a developer. This set of commands will allow you to accomplish a range of basic command-line tasks you need to do on any system you interact with. Once you have learned and practiced the commands in this chapter, you’ll be able to do things like:
- Follow your application logs in real time.
- Fix a broken configuration file to get your application working.
- Move from one directory to another in a Git repository on your local macOS development machine.
Let’s get started with listing a directory. Make sure you’re logged in to a Linux or Unix system (Ubuntu or macOS is fine), and have the Terminal application open, ready to follow along.
ls
List a file or directory. This command is similar to “opening a folder” in a graphical user interface. It lists the contents of the directory it’...