Chapter 3

The command line: first contact

Updated November 1, 2026

The prompt tells you who you are and where you are:

student@host:~$

On the left, your username and the machine name; after the colon, the current directory (~ is your home directory); at the end, $. A command has three parts: the name, options, arguments.

$ ls -l /etc

Here ls is the command, -l is an option (it changes behavior, printing a detailed list), /etc is the argument (what to work on). Options usually start with a dash.

A few commands to settle in. Everything to the right of a # is a comment: the shell drops it and runs nothing to the end of the line, so you do not type those notes.

$ pwd            # where am I now
$ date  
Free with account

Read the rest with a free account

This chapter is free once you sign in. Create an account to keep reading.

Create a free account

Already have an account? Sign in