Virata manual

cd

Moves you to a different folder.

What we have

  • moving to a folder
  • ~ for your home folder
  • typed alone, it reports where you are

Coming later

  • mkdir, erase, copy, type and shell

How you write it

cd directory

Square brackets mean optional. A vertical bar means choose one.

What it does

Everything you type after this — use "survey.dta", save "out.dta" — is looked for in, or written to, the folder you have moved to (the working directory).

Typed on its own, cd just tells you where you are, the same as pwd.

Nearby

use save sysuse import export clear