Read a File
cat
Cat prints the content of file on the standard output.
head
tail
less
| key | Action |
|---|---|
f | full page forward |
b | full page backward |
50p | middle of the file (50%) |
= | current position |
-N | enable row numbers |
-n | disable row numbers |
/ | search pattern after the cursor, press n for next occurrence, and shift + n for previous |
? | search patter before the cursor, press n for previous occurrence, and shift + n for next |
more
Syntax: more <file-path>
| Key | Usage |
|---|---|
enter | scroll down line by line |
space | scroll down a page |
up arrow | scroll up a page |
down arrow | scroll down a page |
q | quit |
h | help |
= | display current line number |
vi | to edit file in vi |