Introduction to the Command Line

Written by Kashif Nazir, updated by Michael

This course will not focus on using the command line, but a few core concepts and skills will be helpful If you are already familiar with the command line (e.g. from CS107), you can skip this page.

Concepts

Accessing the command line

Depending on your operating system, you will have a different application to use the command line interface through:

Command Line Guide

Check out CS107's resources page for video- and text-based guides to many commands and concepts.

In particular, we recommend checking out the following topics:

Note: The guides reference and show examples involving the afs directory. This directory is a shared filesystem on the Stanford cluster machines. You won't have this directory on your computer. From your home directory (the directory the terminal starts in), you should see folders for your Desktop, Documents, etc., so you will be able to access any files you download or create outside of terminal through those folders.