C++ CSS HTML Java JavaScript MySQL Oracle PERL PHP SQL Unix VBScript XHTML XML Сети
Identifying and Working with File Types
 

14.2. Identifying and Working with File Types

extension. A file's extension is the last part of a file's name after the final dot (in the file sneakers.txt, "txt" is that file's extension).

Here is a brief listing of file extensions and their meanings:

14.2.1. Compressed and Archived Files

For information on working with bzip2, gzip, and tar files, refer to Section 14.3 File Compression and Archiving.

14.2.2. File Formats

14.2.3. System Files

14.2.4. Programming and Scripting Files

be?

That is when the file command can be helpful.

For example, you find a file called saturday without an extension. Using the file command, you can tell what type of file it is by typing:

file saturday

In the example, the command file saturday will display ASCII textcat, more, or less commands, or by using a text editor such as gedit or vi.

TipTip
 

To learn more about file, read the man page by typing man file.

For more information on helpful commands for reading files, see Chapter 13 Shell Prompt Basics.

Главная