Thursday, February 22, 2007

Determine What a File Contains

It's not uncommon to view the contents of a file with the vi editor or the cat/more commands. However, I would suggest you determine its file type first. This can be done with the file command. It will examine the file and report its file type.

Binary files can be quite annoying if opened with the incorrect application.

#file filename

No comments: