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. clear clears the terminal so it's nice and fresh again (you can also press Control+L).top shows you a list of running programs (even hidden ones) similar to the Activity Monitor app.open opens any website you specify in your default browser.say hello makes your Mac say "hello" in a computerized voice (make sure your volume is on □).uptime tells you how long your Mac has been powered on.There's no chance of them breaking anything: Here are some other commands you can try. At the time of the screenshot, "Sat 00:06:21 BST" Let's start with the basics and open iTerm from your Dock (if it's there) or by pressing ⌘+Space and typing "iTerm":įrom here, we can command the computer to do stuff!Įxercise: Command your computer to tell you today's date by writing the date command and pressing Enter ⏎: The date command outputs the current date. The terminal might look a bit complex and confusing at first but rest assured, the ability to copy and paste commands from a website, combined with the power and flexibility the command line offers, makes the terminal well worth learning. This isn't a new idea, as you've surely commanded your computer to do stuff using a button before (delete a file, shut down, etc.!) Inside the terminal, you command your computer to do stuff using text. Now you've installed iTerm let's learn some basic commands. The frontend developer's guide to the terminal ITerm is more customizable and has handy features like split panes. For this tutorial, however, we will use iTerm.Įxercise: Install the latest version of iTerm from here. In time I encourage you to explore these options and see what appeals to you. In 2022, there are many terminal apps to choose from, each with their own approach. However, replacing the macOS Terminal with something more powerful from the beginning is a good idea. Since macOS has a built-in Terminal app, you won't have to reach far for a command prompt:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |