summaryrefslogtreecommitdiff
path: root/team-1/reading-a-file.txt
blob: 21e05d5116fcd864b001eab4c8985016a765bf2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
= Reading a file

cat file-name

This outputs the contents of the file called `file-name`, if it exists. To
output the contents of a different file, use a different file name.

If it's a long file, you may find it useful to use `less` instead:

less file-name

This opens the file up for you to scroll through. You can scroll down with <d>,
up with <u>, and quit with <q>.