Computer file: Difference between revisions
CSV import |
CSV import |
||
| Line 1: | Line 1: | ||
[[ | [[File:PunchCardDecks.agr.jpg|thumb]] [[File:BRL61-IBM 305 RAMAC.jpeg|thumb]] [[File:FileFolders.svg|thumb]] [[File:Bitrot in JPEG files, 0 bits flipped.jpg|thumb]] {{Infobox file format | ||
{{Infobox file format | |||
| name = Computer file | | name = Computer file | ||
| extension = Various | | extension = Various | ||
| owner = | | type code = | ||
| genre = Data | | uniform type = | ||
| owner = | |||
| genre = | |||
| container for = Data | |||
| contained by = File system | |||
| extended from = | |||
| extended to = | |||
}} | }} | ||
A '''computer file''' is a | A '''computer file''' is a digital resource for storing information, which is available to a computer program and is usually based on some kind of durable storage. A file is "durable" in the sense that it remains available for programs to use after the current program has finished. | ||
==Structure== | ==Structure== | ||
A computer file is typically | A computer file is typically organized in a hierarchical structure, which includes the following components: | ||
===File Name=== | |||
The file name is a string of characters that uniquely identifies a file within a directory. It often includes an extension that indicates the file type, such as `.txt` for text files or `.jpg` for image files. | |||
===File Extension=== | |||
A file extension is a suffix at the end of a file name that indicates the file's format or type. For example, `.docx` indicates a Microsoft Word document, while `.mp3` indicates an audio file. | |||
===File Path=== | |||
The file path is a string that specifies the location of a file within a file system. It includes the directory and subdirectory names leading to the file. | |||
===File Metadata=== | |||
Metadata is data about data. In the context of files, metadata includes information such as the file's size, creation date, modification date, and permissions. | |||
==Types of Files== | |||
Files can be broadly categorized into several types based on their content and usage: | |||
===Text Files=== | |||
Text files contain human-readable characters and are often used for storing written content. Examples include `.txt`, `.csv`, and `.html` files. | |||
===Binary Files=== | |||
Binary files contain data in a format that is not human-readable. They are used for storing images, audio, video, and executable programs. Examples include `.exe`, `.jpg`, and `.mp4` files. | |||
===Executable Files=== | |||
Executable files contain programs that can be run by the computer. They include files with extensions like `.exe` on Windows or `.sh` on Unix-based systems. | |||
==File Systems== | ==File Systems== | ||
A file system is a method and data structure that an operating system uses to control how data is stored and retrieved. Without a file system, data placed in a storage medium would be one large body of data with no way to tell where one piece of data stops and the next begins. | |||
===Common File Systems=== | |||
* [[FAT32]] | |||
* [[NTFS]] | |||
* [[ext4]] | |||
* [[HFS+]] | |||
==File Operations== | |||
Common operations that can be performed on files include: | |||
===Creating=== | |||
Creating a file involves allocating space in the file system and assigning a name to the file. | |||
===Reading=== | |||
Reading a file involves accessing the data stored in the file and interpreting it according to the file format. | |||
== | ===Writing=== | ||
Writing to a file involves modifying the data stored in the file or appending new data to it. | |||
== | ===Deleting=== | ||
Deleting a file involves removing its entry from the file system, which may also free up the space it occupied. | |||
== | ==Security and Permissions== | ||
File | File security is crucial to protect sensitive data from unauthorized access. File permissions determine who can read, write, or execute a file. Common permission settings include: | ||
* Read (r) | |||
* Write (w) | |||
* Execute (x) | |||
== | ==Also see== | ||
* [[File system]] | * [[File system]] | ||
* [[File format]] | * [[File format]] | ||
* [[ | * [[Data storage device]] | ||
* [[Operating system]] | * [[Operating system]] | ||
{{File formats}} | |||
[[Category:Computer files]] | |||
Latest revision as of 15:44, 9 December 2024




Computer file
| Filename extension | Various |
|---|---|
| Internet media type | |
| Uniform Type Identifier (UTI) | |
| Magic number | |
| Developed by | |
| Initial release | |
| Latest release | |
| Type of format | |
| Container for | |
| Contained by |
A computer file is a digital resource for storing information, which is available to a computer program and is usually based on some kind of durable storage. A file is "durable" in the sense that it remains available for programs to use after the current program has finished.
Structure[edit]
A computer file is typically organized in a hierarchical structure, which includes the following components:
File Name[edit]
The file name is a string of characters that uniquely identifies a file within a directory. It often includes an extension that indicates the file type, such as `.txt` for text files or `.jpg` for image files.
File Extension[edit]
A file extension is a suffix at the end of a file name that indicates the file's format or type. For example, `.docx` indicates a Microsoft Word document, while `.mp3` indicates an audio file.
File Path[edit]
The file path is a string that specifies the location of a file within a file system. It includes the directory and subdirectory names leading to the file.
File Metadata[edit]
Metadata is data about data. In the context of files, metadata includes information such as the file's size, creation date, modification date, and permissions.
Types of Files[edit]
Files can be broadly categorized into several types based on their content and usage:
Text Files[edit]
Text files contain human-readable characters and are often used for storing written content. Examples include `.txt`, `.csv`, and `.html` files.
Binary Files[edit]
Binary files contain data in a format that is not human-readable. They are used for storing images, audio, video, and executable programs. Examples include `.exe`, `.jpg`, and `.mp4` files.
Executable Files[edit]
Executable files contain programs that can be run by the computer. They include files with extensions like `.exe` on Windows or `.sh` on Unix-based systems.
File Systems[edit]
A file system is a method and data structure that an operating system uses to control how data is stored and retrieved. Without a file system, data placed in a storage medium would be one large body of data with no way to tell where one piece of data stops and the next begins.
Common File Systems[edit]
File Operations[edit]
Common operations that can be performed on files include:
Creating[edit]
Creating a file involves allocating space in the file system and assigning a name to the file.
Reading[edit]
Reading a file involves accessing the data stored in the file and interpreting it according to the file format.
Writing[edit]
Writing to a file involves modifying the data stored in the file or appending new data to it.
Deleting[edit]
Deleting a file involves removing its entry from the file system, which may also free up the space it occupied.
Security and Permissions[edit]
File security is crucial to protect sensitive data from unauthorized access. File permissions determine who can read, write, or execute a file. Common permission settings include:
- Read (r)
- Write (w)
- Execute (x)
Also see[edit]
| Computer files | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|