Tutorial: Working in the Terminal#
You may have already noticed you’re not able to navigate the terminal using your mouse or cursor. We can navigate the terminal using the keyboard. The up and down arrow keys let you move back (up) and forward (down) through previously typed commands. The left and right arrow keys let you move within characters or symbols for a specific command.
Press the up arrow once to show the previously-typed echo command. Then, use the left and right arrow keys to navigate to the characters within the quotation marks and replace them with another word or phrase of your choosing. Press Return or Enter to run the modified command.
A couple other useful navigation tools:
Press
Control+Ato move to the start of a linePress
Control+Eto move to the end of a lineType
clearinto the terminal and pressReturn/Enterto clear the screenWhen you’re ready to close the terminal window, type
exitand pressReturn/Enter
A couple notes on terminal syntax:
commandstell the computer to perform an actionoptionsmodify the command and use a hyphen (-) symbolSometimes
optionsare calledflagsorswitches
argumentsspecify what the command operation will be performed on (i.e. a specific file or directory)
Not all commands require arguments or options, but some commands can have one or more of each. You can also chain multiple commands together using the vertical bar | symbol. This is often called a pipe.
Key Concepts#
File Manager (or File Browser)
“A file manager or file browser is a computer program that provides a user interface to manage files and folders. The most common operations performed on files or groups of files include creating, opening (e.g. viewing, playing, editing or printing), renaming, copying, moving, deleting and searching for files, as well as modifying file attributes, properties and file permissions. Folders and files may be displayed in a hierarchical tree based on their directory structure” (Wikipedia)
Examples: Finder (Mac), File Explorer (Windows)
File Extension (or Filename Extension)
“A filename extension, file name extension or file extension is a suffix to the name of a computer file (e.g., .txt, .docx, .md). The extension indicates a characteristic of the file contents or its intended use. A filename extension is typically delimited from the rest of the filename with a full stop (period)” (Wikipedia)
Directory
“In computing, a directory is a file system cataloging structure which contains references to other computer files, and possibly other directories. On many computers, directories are known as folders” (Wikipedia)
Path
“A path is a string of characters used to uniquely identify a location in a directory structure. It is composed by following the directory tree hierarchy in which components, separated by a delimiting character, represent each directory. The delimiting character is most commonly the slash /, the backslash character \, or colon :” (Wikipedia)
Absolute Path
“An absolute or full path points to the same location in a file system, regardless of the current working directory. To do that, it must include the root directory” (Wikipedia)
Relative Path
“A relative path starts from some given working directory, avoiding the need to provide the full absolute path” (Wikipedia)

