Detect the type of file

Last update on August 12, 2009 12:44 PM by jak58
Published by deri58

Detect the type of file









Under the system Unix and Linux, the file extension does not have any importance, i.e a file named file.jpg can even be an HTML page like a sound file under format WAV which can be accessed with the existing under the Operating system.

To know the type of file, run the command:

File filename
Best answers for « Detect the type of file » in :
File formats and extensions Show What is a MIME type? The MIME type (Multipurpose Internet Mail Extensions) is a standard that was proposed by the Bell Communications laboratories in 1991 to broaden the possibilities of email, involving insertion of documents (images, sounds and...
Parsing a binary file in PHP Show Parsing a binary file in PHP When using low level languages like C or Pascal, it is a common procedure, to data in a binary file (a record that can't be translated into text). Using C language, suppose you want to save the value...
Uploading of files ShowUploading of files Form for sending files PHP Configuration to enable upload File recovery with PHP > The PHP language allows managing files uploading through HTML form. Form for sending files The first step is to create an html...
Determining File Format ShowDetermining File Format FileID TrID The simplest method for determining the type of a file is to see its extension.But it may happens that sometimes the extension does not match or that the file has no extension, in the case of a...
Renaming multiple files in batch ShowRenaming multiple files in batch Native features Using a third-party program Renaming a large number of files can quickly become tedious. Fortunately, there are tools to automate this task in many cases: Native features On Windows...
Download Similarity ShowSimilarity is a program published by GAR Software to help you to find duplicate musical files. It can detect similar files having identical sound contents or idenID3 tags. Similarity can support several types of files such as MP3, WMA, OGG, ASF,...
Download GigaTribe ShowGigaTribe (FormerTribalWeb) is a sharing P2P software on private network. GigaTribe, allows to choose files to be shared and the persons with whom they must be shared. It allows to exchange any file types (films, photos, documents) without size...
HTML forms ShowForms Interactive forms let web page authors give their pages interactive elements, such as for receiving messages from their readers, much like the reply cards found in some magazines. The reader enters information by filling in fields or clicking...
UNIX - Files ShowIntroduction to UNIX files In UNIX systems any element is represented in the form of a file. All files are architectured around a single tree structure where the base, called the root, is written "/". File types UNIX systems define different...