Terminal

From MTG Wiki
Revision as of 19:48, 5 October 2015 by Dani (Talk | contribs) (created)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Terminal is an application that allows you to run commands within Mac OS X. It's located within the Applications folder.

Files and folders

In Finder, you can see folders and interact with them in a visual manner. Terminal does the exact same thing with words instead of icons.

Generally speaking, Terminal will allow you to work with one folder. By default, you'll start in your user folder. Type ls and hit enter to see a list of the files within the folder that's currently active. You should see Documents, Movies, Music, Pictures, etc., just as you would in the Finder window for your user's home folder.

Picture your folders as a tree: What you see when you double-click the Macintosh HD logo on your desktop is the very base of the tree, and everything branches out from there.

Moving through the file structure

The name of the current folder (or "directory") will always be visible in Terminal, before your username. The command to move among folders is cd, as in "change directory."

If you want to move into your documents folder, for example—which is further out into the branches of the tree—you'd type cd Documents and hit enter.

cd .. moves up a level in the tree—that is, one level closer to the trunk.

The cd and ls commands should cover most, if not all, of what you'll need to do in Terminal that isn't already part of Tarbell.