In the terminal, you use the cd command (change directory) to go forwards and cd. In Finder, you use your mouse to get around. We're on different computers, after all! Getting around Next, try running ls to view (list) all the directories inside the current working directory: The ls command outputs a list of all file names in a vertical listĭon't worry if your output looks completely different. In terminal-speak, printing to the terminal means displaying something in the Terminal.Īlthough terminal commands oftentimes sound perplexing they're sometimes acronyms or abbreviations, which makes them easy to remember and recall. In Finder, you can only view one directory at a time which, in nerd-speak, is known as your working directory.Įxercise: To see your working directory in the Terminal, run pwd (print working directory): The pwd command in action. You experience it every day in Finder: Even though the terminal is new to you, the fundamental idea here is the same as the graphical Finder app you've probably used before. Directories are used to organize files to make them easier to find. Working with files and foldersĪs a reminder, your Mac organizes files through directories (folders).Ī directory is a special type of file that can contain other files and directories within it. In the next section, let's look at navigating and working with files using the terminal.
0 Comments
Leave a Reply. |