File Types

Q1. What are the types of file?

Ans.When we design a file system—indeed, an entire operating system—we always consider whether the operating system should recognize and support file types. If an operating system recognizes the type of a file, it can then operate on the file in reasonable ways.

 

A common technique for implementing file types is to include the type as part of the file name. The name is split into two parts—a name and an extension,usually separated by a period character (Figure 10.2). In this way, the user andthe operating system can tell from the name alone what the type of a file is.

 

File name examples include resume.doc, Scrver.java, and

ReaderThread.c

File Type Usual Extension Function
executable exe, com, bin or none ready-to-run machine language program.
object obj, o compiled, machine language not linked.
source code c,cc,java,pas,asm,a source code in various languages.
batch bat, sh commands to the command interpreter.
text txt, doc textual data, documents
word processor wp, tex, rtf, doc various word-processor formats.
library lib, a, so, dll libraries of routines for programmers.
print or view ps, pdf, jpg ASCII or binary file in a format for printing or viewing.
archieve arc, zip, tar related files grouped into one file, sometimes compressed, for archiving or storage.
multimedia mpeg, mov, rm, mps, avi binary file containing audio or A/V information.

Figure: Common File Type

Leave a Reply

Your email address will not be published. Required fields are marked *

6 Views
%d bloggers like this: