Here is the video version, if you prefer it:
The file
command is used to guess the filetype based on files contents. (Ward, 2014)
Here is an example of its usage:
mislav@mislavovo-racunalo:~/Documents$ file ls.txt
ls.txt: UTF-8 Unicode text
Hope you learned something new!
References
Ward, B. (2014). How Linux Works: What Every Superuser Should Know (2nd ed.). No Starch Press. Page 20
NewsletterUpdates on interesting things I am doing
Subscribe to my newsletter to keep abreast of the interesting things I'm doing. I will send you the newsletter only when there is something interesting. This means 0% spam, 100% interesting content.