# Viewing File Contents and Metadata¶

The page has the commands for lesson 4. The commands for this lesson are:

Command Action
file View the type of the file. (e.g. JPEG, text)
cat View a text file.
more View a large text file one page at a time.
less View a large text file using scrolling. less is an improved version of more.
head View the first few lines of a text file.
tail View the last few lines of a text file.
wc Count the lines in a text file.
xxd View the contents of a binary file.