Read and count filesCommand line · 0/4 steps

See what's herestep 1 of 4 · beginner

Support

The command is shown. Click it to run, or type your own.

By the end of this lesson you can
  • List the files in a workspace with ls
  • Read a file's contents with cat
  • Count lines with wc -l
  • Run a single command across many files using the * wildcard

Before you startNone. This is the very first step, and assumes no command-line experience.

ls lists the files in your workspace. It's the first thing you run when you land somewhere new on the command line.

List your files.

Note

The command line is a conversation: you type a command, press Enter, and read the reply before typing the next one. There's no rush, and nothing here can break your computer.

workspace · terminal

Type a command, or click the suggested one. ↑/↓ recall history, Tab completes file names. New to this? Hit Explain this command to see it in plain English.

…
workspace/shared/data0 files
Booting the WebAssembly runtime…
Command line0 / 4 stepsStep 1WASM shell