Categories
Uncategorized

Terminal

What is Terminal?

What is Terminal?

  • The terminal is an application in which you can execute commands directly through code, without the use of a GUI (graphics user interface).
  • Open Terminal.app by searching for it in the spotlight on a mac.


Common Terminal Commands

pwd – short for ‘present/print working directory’ tells you where you are in your computer
ls – short for ‘list’, lists what is in the directory where you are
ls – a – shows all items including hidden files.
cd enter_name- change directory to folder you point to
cd .. – shortcut to zoom out to the next level up/parent directory
cd ~ – changes to user, ultimate zoom out to parent directory
mkdir – short for make directory, makes a new directory/folder
Rm –r enter_name – removes a directory and everything that is its child directory. -r flag is always required when removing directories. Another option, assuming the directory is empty, is rmdir
touch new_file new_file2 – command creates new files. can create multiple or single at one time.

Flags are additional command arguments that modify the behavior of the base command.
They start with the prefix “-“ such as -m, -r, -a etc.

LeaNakamura's avatar

By LeaNakamura

I'm a Brooklyn-based web development student, musician and textile artist originally from Maui, Hawaii.

Leave a comment

Design a site like this with WordPress.com
Get started