Virata manual

dir

Lists the files in the current folder.

What we have

  • listing files with their sizes and dates
  • a pattern such as *.dta

Coming later

Nothing known to be missing.

How you write it

dir [path]

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

What it does

With no pattern it shows everything; give it something like *.dta and it shows only the matching files, with their sizes and dates.

Useful straight after cd, to check you are where you think you are.

Try it

. dir
(no files matching *)
The same thing in pandas and in R

R

# no R form for `dir` yet -- see docs/r-equivalents.md

Nearby

use save sysuse import export clear