View A File's Type

The file command allows us to view a file’s type.

Make File

echo "This is some text." > sales.txt

View A File’s Type

file LICENSE.txt
sales.txt: ASCII text