Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Computer file
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{short description|Computer resource for recording data on a storage device}} {{refimprove|date=June 2009}} A '''computer file''' is a [[System resource|resource]] for recording [[Data (computing)|data]] on a [[Computer data storage|computer storage device]], primarily identified by its [[filename]]. Just as words can be written on paper, so too can data be written to a computer file. Files can be shared with and transferred between [[computers]] and [[Mobile device|mobile devices]] via [[removable media]], [[Computer networks|networks]], or the [[Internet]]. Different [[File format|types of computer files]] are designed for different purposes. A file may be designed to store a written message, a document, a [[spreadsheet]], an [[Digital image|image]], a [[Digital video|video]], a [[computer program|program]], or any wide variety of other kinds of data. Certain files can store multiple data types at once. By using computer programs, a person can open, read, change, save, and close a computer file. Computer files may be reopened, modified, and [[file copying|copied]] an arbitrary number of times. Files are typically organized in a [[file system]], which tracks file locations on the disk and enables user access. ==Etymology== [[File:PunchCardDecks.agr.jpg|right|thumb|A [[punched card]] file]] [[File:BRL61-IBM 305 RAMAC.jpeg|right|thumb|The twin [[Disk storage|disk files]] of an [[IBM 305]] system]] The word "file" derives from the Latin ''filum'' ("a thread, string").<ref>{{Cite web |title=Online Etymology Dictionary |url=https://www.etymonline.com/index.php?term=file |access-date=2015-08-17 |archive-date=2015-09-24 |archive-url=https://web.archive.org/web/20150924134509/https://www.etymonline.com/index.php?term=file |url-status=live }}</ref> "File" was used in the context of computer storage as early as January 1940. In ''Punched Card Methods in Scientific Computation'',<ref>{{Cite book |last1=Eckert |first1=W. J. |url=https://catalog.hathitrust.org/Record/002523225 |title=Punched card methods in scientific computation |last2=Thomas J. Watson Astronomical Computing Bureau |first2=New York. |date=1940 |publisher=The Thomas J. Watson Astronomical Computing Bureau, Columbia University |location=New York |access-date=2018-04-17 |archive-date=2020-06-12 |archive-url=https://web.archive.org/web/20200612015646/https://catalog.hathitrust.org/Record/002523225 |url-status=live }}</ref> W. J. Eckert stated, "The first extensive use of the early Hollerith Tabulator in astronomy was made by [[Leslie Comrie|Comrie]].<ref>{{Cite journal |last=Comrie |first=L. J. |date=1928-04-13 |title=On the Construction of Tables by Interpolation (Plate 6) |journal=Monthly Notices of the Royal Astronomical Society |language=en |volume=88 |issue=6 |pages=506–523 |bibcode=1928MNRAS..88..506C |doi=10.1093/mnras/88.6.506 |issn=0035-8711 |doi-access=free}}</ref> He used it for building a table from successive differences, and for adding large numbers of harmonic terms". "Tables of [[Function (mathematics)|functions]] are constructed from their differences with great efficiency, either as printed tables or as a ''[https://hdl.handle.net/2027/uc1.b3621946?urlappend=%3Bseq=16 file of punched cards]''." In February 1950, in a [[Radio Corporation of America]] (RCA) advertisement in ''[[Popular Science]]'' magazine<ref>{{Citation |title=Popular Science |date=February 1950 |url=https://books.google.com/books?id=9SwDAAAAMBAJ&pg=PA96 |page=96 |publisher=Bonnier Corporation |access-date=2014-03-07 |mode=cs1 |archive-date=2022-01-09 |archive-url=https://web.archive.org/web/20220109114611/https://books.google.com/books?id=9SwDAAAAMBAJ&pg=PA96 |url-status=live }}</ref> describing a new "memory" vacuum tube it had developed, RCA stated: "the results of countless computations can be kept 'on file' and taken out again. Such a 'file' now exists in a 'memory' tube developed at RCA Laboratories. Electronically it retains figures fed into calculating machines, holds them in storage while it memorizes new ones – speeds intelligent solutions through mazes of mathematics." In 1952, "file" denoted, among other things, information stored on [[punched card]]s.<ref>Robert S. Casey, et al. ''Punched Cards: Their Applications to Science and Industry''. 1952.</ref> In early use, the underlying hardware, rather than the contents stored on it, was denominated a "file". For example, the [[IBM 350]] disk drives were denominated "disk files".<ref>Martin H. Weik. Ballistic Research Laboratories Report #1115. March 1961. [https://ed-thelen.org/comp-hist/BRL61-ibm03.html#IBM-305-RAMAC pp. 314–331] {{Webarchive|url=https://web.archive.org/web/20161021113333/https://ed-thelen.org/comp-hist/BRL61-ibm03.html#IBM-305-RAMAC |date=2016-10-21 }}.</ref> The introduction, {{circa|1961}}, by the [[Burroughs MCP]] and the MIT [[Compatible Time-Sharing System]] of the concept of a "[[file system]]" that managed several virtual "files" on one storage device is the origin of the contemporary denotation of the word. Although the contemporary "[[register file]]" demonstrates the early concept of files, its use has greatly decreased. ==File contents== On most modern [[operating system]]s, files are organized into one-dimensional arrays of [[byte]]s. The [[file format|format]] of a file is defined by its content since a file is solely a container for data. On some platforms the format is indicated by its [[filename extension]], specifying the rules for how the bytes must be organized and interpreted meaningfully. For example, the bytes of a plain text file ({{Mono|.txt}} in Windows) are associated with either [[ASCII]] or [[UTF-8]] characters, while the bytes of image, video, and audio files are interpreted otherwise. Most file types also allocate a few bytes for [[metadata]], which allows a file to carry some basic information about itself. Some file systems can store arbitrary (not interpreted by the file system) file-specific data outside of the file format, but linked to the file, for example [[extended attributes]] or [[Fork (file system)|forks]]. On other file systems this can be done via [[sidecar file]]s or software-specific databases. All those methods, however, are more susceptible to loss of metadata than [[Container format (computing)|container]] and [[archive file]] formats. === File size === {{Misleading|section|date=March 2019}} {{Main article|File size}} At any instant in time, a file has a specific size, normally expressed as a number of [[byte]]s,<ref group="lower-alpha">Can also be shown as kilobytes, megabytes, gigabytes, etc.</ref> that indicates how much storage is occupied by the file. In most modern operating systems the size can be any non-negative whole number of bytes up to a system limit. Many older operating systems kept track only of the number of [[disk sector|blocks]] or [[track (disk drive)|tracks]] occupied by a file on a physical storage device. In such systems, software employed other methods to track the exact byte count (e.g., [[CP/M]] used a special control character, [[Ctrl-Z]], to signal the end of text files). The general definition of a file does not require that its size have any real meaning, however, unless the data within the file happens to correspond to data within a pool of persistent storage. A special case is a [[zero byte file]]; these files can be newly created files that have not yet had any data written to them, or may serve as some kind of [[Flag (computing)|flag]] in the file system, or are accidents (the results of aborted disk operations). For example, the file to which the link {{Mono|/bin/ls}} points in a typical [[Unix-like]] system probably has a defined size that seldom changes. Compare this with {{Mono|[[/dev/null]]}} which is also a file, but as a [[character special file]], its size is not meaningful. === Organization of data in a file === Information in a computer file can consist of smaller packets of information (often called "[[Row (database)|records]]" or "lines") that are individually different but share some common traits. For example, a payroll file might contain information concerning all the employees in a company and their payroll details; each record in the payroll file concerns just one employee, and all the records have the common trait of being related to payroll—this is very similar to placing all payroll information into a specific filing cabinet in an office that does not have a computer. A text file may contain lines of text, corresponding to printed lines on a piece of paper. Alternatively, a file may contain an arbitrary binary image (a [[Binary blob|blob]]) or it may contain an [[executable]]. The way information is grouped into a file is entirely up to how it is designed. This has led to a plethora of more or less standardized file structures for all imaginable purposes, from the simplest to the most complex. Most computer files are used by [[computer program]]s which create, modify or delete the files for their own use on an as-needed basis. The programmers who create the programs decide what files are needed, how they are to be used and (often) their names. In some cases, computer programs manipulate files that are made visible to the computer user. For example, in a [[Word processor|word-processing program]], the user manipulates document files that the user personally names. Although the content of the document file is arranged in a format that the word-processing program understands, the user is able to choose the name and location of the file and provide the bulk of the information (such as words and text) that will be stored in the file. Many applications pack all their data files into a single file called an [[archive file]], using internal markers to discern the different types of information contained within. The benefits of the archive file are to lower the number of files for easier transfer, to reduce storage usage, or just to organize outdated files. The archive file must often be unpacked before next using. == File operations == The most basic operations that programs can perform on a file are: * Create<!--needs a link--> a new file * Change the [[file system permissions|access permissions]] and [[file attribute|attributes]] of a file * [[open (system call)|Open]] a file, which makes the file contents available to the program * [[read (system call)|Read]] data from a file * [[write (system call)|Write]] data to a file * [[file deletion|Delete]] a file * [[close (system call)|Close]] a file, terminating the association between it and the program * [[truncation|Truncate]] a file, shortening it to a specified size within the file system without rewriting any content * Allocate space to a file without writing any content. Not supported by some file systems.<ref>fallocate(1)</ref> Files on a computer can be created, moved, modified, grown, shrunk ([[Truncation#Causes of truncation|truncated]]), and deleted. In most cases, computer programs that are executed on the computer handle these operations, but the user of a computer can also manipulate files if necessary. For instance, [[Microsoft Word]] files are normally created and modified by the Microsoft Word program in response to user commands, but the user can also move, [[rename (computing)|rename]], or [[File deletion|delete]] these files directly by using a [[file manager|file manager program]] such as [[Windows Explorer]] (on Windows computers) or by [[command-line interface|command lines]] (CLI). In [[Unix-like]] systems, [[user space]] programs do not operate directly, at a low level, on a file. Only the [[Kernel (operating system)|kernel]] deals with files, and it handles all user-space interaction with files in a manner that is transparent to the user-space programs. The [[operating system]] provides a level of [[Abstraction (computer science)|abstraction]], which means that interaction with a file from user-space is simply through its filename (instead of its [[inode]]). For example, <kbd>[[rm (Unix)|rm]] ''filename''</kbd> will not delete the file itself, but only a [[hard link|link]] to the file. There can be many links to a file, but when they are all removed, the [[Kernel (operating system)|kernel]] considers that file's memory space free to be reallocated. This [[Data remanence|free space]] is commonly considered a security risk (due to the existence of [[File recovery|file recovery software]]). Any secure-deletion program uses kernel-space (system) functions to wipe the file's data. File moves within a file system complete almost immediately because the data content does not need to be rewritten. Only the paths need to be changed. === Moving methods === There are two distinct implementations of file moves. When moving files between devices or partitions, some file managing software deletes each selected file from the source directory '''individually''' after being transferred, while other software deletes '''all files at once''' only after every file has been transferred. With the <code>[[mv (Unix)|mv]]</code> command for instance, the former method is used when selecting files individually, possibly with the use of [[wildcard character|wildcards]] (example: <code>mv -n sourcePath/* targetPath</code>, while the latter method is used when selecting entire directories (example: <code>mv -n sourcePath targetPath</code>). Microsoft [[Windows Explorer]] uses the former method for [[mass storage]] file moves, but the latter method using [[Media Transfer Protocol]], as described in {{section link|Media Transfer Protocol|File move behavior}}. The former method (individual deletion from source) has the benefit that space is released from the source device or partition imminently after the transfer has begun, meaning after the first file is finished. With the latter method, space is only freed after the transfer of the entire selection has finished. If an incomplete file transfer with the latter method is aborted unexpectedly, perhaps due to an unexpected power-off, system halt or disconnection of a device, no space will have been freed up on the source device or partition. The user would need to merge the remaining files from the source, including the incompletely written (truncated) last file. With the individual deletion method, the file moving software also does not need to cumulatively keep track of all files finished transferring for the case that a user manually aborts the file transfer. A file manager using the latter (afterwards deletion) method will have to only delete the files from the source directory that have already finished transferring. ==Identifying and organizing== [[File:FileFolders.svg|thumb|200px|right|Files and folders arranged in a hierarchy]] In modern computer systems, files are typically accessed using names ([[filename]]s). In some operating systems, the name is associated with the file itself. In others, the file is anonymous, and is pointed to by links that have names. In the latter case, a user can identify the name of the link with the file itself, but this is a false analogue, especially where there exists more than one link to the same file. Files (or links to files) can be located in directories. However, more generally, a [[File directory|directory]] can contain either a list of files or a list of links to files. Within this definition, it is of paramount importance that the term "file" includes directories. This permits the existence of directory hierarchies, i.e., directories containing sub-directories. A name that refers to a file within a directory must be typically unique. In other words, there must be no identical names within a directory. However, in some operating systems, a name may include a specification of type that means a directory can contain an identical name for more than one type of object such as a directory and a file. In environments in which a file is named, a file's name and the path to the file's directory must uniquely identify it among all other files in the computer system—no two files can have the same name and path. Where a file is anonymous, named references to it will exist within a namespace. In most cases, any name within the namespace will refer to exactly zero or one file. However, any file may be represented within any namespace by zero, one or more names. Any string of characters may be a well-formed<!-- Could this be a misuse of a term? --> name for a file or a link depending upon the context of application. Whether or not a name is well-formed depends on the type of computer system being used. Early computers<!-- software? --> permitted only a few letters or digits in the name of a file, but modern computers allow long names (some up to 255 characters) containing almost any combination of [[Unicode]] letters or Unicode digits, making it easier to understand the purpose of a file at a glance. Some computer systems allow file names to contain spaces; others do not. Case-sensitivity of file names is determined by the [[file system]]. Unix file systems are usually case sensitive and allow user-level applications to create files whose names differ only in the case of characters. [[Microsoft Windows]] supports multiple<!-- after Unix, this could be "only a few" ;) --> file systems, each with different policies{{which|date=February 2014}} regarding case-sensitivity. The common [[File Allocation Table|FAT]] file system can have multiple files whose names differ only in case if the user uses a [[disk editor]] to edit the file names in the [[FAT directory table|directory entries]]. User applications, however, will usually not allow the user to create multiple files with the same name but differing in case. Most computers organize files into hierarchies using folders, directories, or catalogs. The concept is the same irrespective of the terminology used. Each folder can contain an arbitrary number of files, and it can also contain other folders. These other folders are referred to as subfolders. Subfolders can contain still more files and folders and so on, thus building a tree-like structure in which one "master folder" (or "root folder" — the name varies from one operating system to another) can contain any number of levels of other folders and files. Folders can be named just as files can (except for the root folder, which often does not have a name). The use of folders makes it easier to organize files in a logical way. When a computer allows the use of folders, each file and folder has not only a name of its own, but also a path, which identifies the folder or folders in which a file or folder resides. In the path, some sort of special character—such as a slash—is used to separate the file and folder names. For example, in the illustration shown in this article, the path {{Mono|/Payroll/Salaries/Managers}} uniquely identifies a file called {{Mono|Managers}} in a folder called {{Mono|Salaries}}, which in turn is contained in a folder called {{Mono|Payroll}}. The folder and file names are separated by slashes in this example; the topmost or root folder has no name, and so the path begins with a slash (if the root folder had a name, it would precede this first slash). Many computer systems use [[filename extension|extensions]] in file names to help identify what they contain, also known as the file type. On Windows computers, extensions consist of a dot (period) at the end of a file name, followed by a few letters to identify the type of file. An extension of {{Mono|.txt}} identifies a text file; a {{Mono|.doc}} extension identifies any type of document or documentation, commonly in the [[Microsoft Word]] [[file format]]; [[List of file formats|and so on]]. Even when extensions are used in a computer system, the degree to which the computer system recognizes and heeds them can vary; in some systems, they are required, while in other systems, they are completely ignored if they are presented. ==Protection== Many modern computer systems provide methods for protecting files against accidental and deliberate damage. Computers that allow for multiple users implement [[file permissions]] to control who may or may not modify, delete, or create files and folders. For example, a given user may be granted only permission to read a file or folder, but not to modify or delete it; or a user may be given permission to read and modify files or folders, but not to execute them. Permissions may also be used to allow only certain users to see the contents of a file or folder. Permissions protect against unauthorized tampering or destruction of information in files, and keep private information confidential from unauthorized users. Another protection mechanism implemented in many computers is a ''read-only flag.'' When this flag is turned on for a file (which can be accomplished by a computer program or by a human user), the file can be examined, but it cannot be modified. This flag is useful for critical information that must not be modified or erased, such as special files that are used only by internal parts of the computer system. Some systems also include a ''[[Hidden file and hidden directory|hidden flag]]'' to make certain files invisible; this flag is used by the computer system to hide essential system files that users should not alter. ==Storage== Any file that has any useful purpose must have some physical manifestation. That is, a file (an abstract concept) in a real computer system must have a real physical analogue if it is to exist at all. In physical terms, most computer files are stored on some type of data storage device. For example, most [[operating system]]s store files on a [[hard disk]]. Hard disks have been the ubiquitous form of [[non-volatile]] storage since the early 1960s.<ref name="Mee">Magnetic Storage Handbook 2nd Ed., Section 2.1.1, Disk File Technology, Mee and Daniel, (c)1990,</ref> Where files contain only temporary information, they may be stored in [[RAM]]. Computer files can be also stored on other media in some cases, such as [[magnetic tape]]s, [[compact disc]]s, [[Digital Versatile Disc]]s, [[Zip drive]]s, [[USB flash drive]]s, etc. The use of [[solid state drives]] is also beginning to rival the hard disk drive. In Unix-like operating systems, many files have no associated physical storage device. Examples are {{Mono|[[/dev/null]]}} and most files under directories {{Mono|/dev}}, {{Mono|/proc}} and {{Mono|/sys}}. These are virtual files: they exist as objects within the operating system kernel. As seen by a running user program, files are usually represented either by a [[File Control Block|file control block]] or by a [[file handle]]. A file control block (FCB) is an area of memory which is manipulated to establish a filename etc. and then passed to the operating system as a parameter; it was used by older IBM operating systems and early PC operating systems including [[CP/M]] and early versions of [[MS-DOS]]. A file handle is generally either an [[opaque data type]] or an integer; it was introduced in around 1961 by the [[ALGOL 60|ALGOL-based]] [[Burroughs MCP]] running on the [[Burroughs B5000]] but is now ubiquitous. ==File corruption== {{further|Data corruption|Data degradation}} {{multiple image | width = 200 | image1 = Bitrot_in_JPEG_files,_0_bits_flipped.jpg | caption1 = Original [[JPEG]] file | alt1 = Photo of a child | image2 = Bitrot_in_JPEG_files,_1_bit_flipped.jpg | caption2 = Corrupted JPEG file, with a single [[bit]] flipped (turned from 0 to 1, or vice versa) | al1 = The same photo of a child, but noticeably corrupted: a different color tone and square shapes from the middle to the bottom of the image | footer = While there is visible corruption on the second file, one can still make out what the original image might have looked like. }} When a file is said to be corrupted, it is because its contents have been saved to the computer in such a way that they cannot be properly read, either by a human or by software. Depending on the extent of the damage, the original file can sometimes be [[Data recovery|recovered]], or at least partially understood.<ref name="techwalla-corruption">{{Cite web |last=Gorski |first=Victoria |title=What Causes a Corrupt File? |url=https://www.techwalla.com/articles/what-causes-a-corrupt-file |access-date=2019-03-17 |archive-date=2020-07-28 |archive-url=https://web.archive.org/web/20200728183934/https://www.techwalla.com/articles/what-causes-a-corrupt-file |url-status=live }}</ref> A file may be created corrupt, or it may be corrupted at a later point through overwriting. There are many ways by which a file can become corrupted. Most commonly, the issue happens in the process of [[write (system call)|writing]] the file to a [[Disk storage|disk]].<ref name="housonchronicle-corruption">{{Cite news |last=Williams |first=Jane |date=2019-01-14 |title=What Does It Mean When Your File Is Corrupt? |work=[[Houston Chronicle]] |url=https://smallbusiness.chron.com/mean-file-corrupt-70768.html |access-date=2019-03-17 |archive-date=2019-07-15 |archive-url=https://web.archive.org/web/20190715235553/https://smallbusiness.chron.com/mean-file-corrupt-70768.html |url-status=live }}</ref> For example, if an [[Graphics software|image-editing program]] unexpectedly [[Crash (computing)|crashes]] while saving an image, that file may be corrupted because the program could not save its entirety. The program itself might warn the user that there was an error, allowing for another attempt at saving the file.<ref name="howtogeek-corruption">{{Cite web |last=Glenn |first=Walter |date=2017-12-14 |title=What Is a Corrupted File, and Is There a Way to Get It Back? |url=https://www.howtogeek.com/336099/what-is-a-corrupted-file-and-is-there-a-way-to-get-it-back/ |url-status=live |archive-url=https://web.archive.org/web/20181206135510/https://www.howtogeek.com/336099/what-is-a-corrupted-file-and-is-there-a-way-to-get-it-back/ |archive-date=2018-12-06 |access-date=2019-03-17 |publisher=How-To Geek}}</ref> Some other examples of reasons for which files become corrupted include: * The computer itself [[Shutdown (computing)|shutting down]] unexpectedly (for example, due to a power loss) with open files, or files in the process of being saved;<ref name="techwalla-corruption" /><ref name="housonchronicle-corruption" /><ref name="howtogeek-corruption" /> * A [[download]] being interrupted before it was completed; * Due to a [[bad sector]] on the [[Hard disk drive|hard drive]];<ref name="techwalla-corruption" /><ref name="housonchronicle-corruption" /> * The user removing a [[flash drive]] (such as a [[USB flash drive|USB stick]]) without properly [[Mount (computing)|unmounting]] (commonly referred to as "safely removing");<ref>{{Cite web |title=What Causes Flash Memory Corruption? |url=https://www.securedatarecovery.com/services/hard-drive-recovery/what-causes-flash-media-corruption |access-date=2019-03-17 |publisher=[[SecureDataRecovery]] |archive-date=2020-07-28 |archive-url=https://web.archive.org/web/20200728192611/https://www.securedatarecovery.com/services/hard-drive-recovery/what-causes-flash-media-corruption |url-status=live }}</ref><ref>{{Cite web |last=Hoffman |first=Chris |date=2016-09-28 |title=Do You Really Need to Safely Remove USB Flash Drives? |url=https://www.howtogeek.com/118546/htg-explains-do-you-really-need-to-safely-remove-usb-sticks/ |access-date=2019-03-17 |publisher=How-To Geek |archive-date=2019-03-30 |archive-url=https://web.archive.org/web/20190330123333/https://www.howtogeek.com/118546/htg-explains-do-you-really-need-to-safely-remove-usb-sticks/ |url-status=live }}</ref><ref>{{Cite web |title=Open a document after a file corruption error |url=https://support.office.com/en-us/article/open-a-document-after-a-file-corruption-error-47df9d48-2165-4411-a699-1786ac734bc3 |access-date=2019-03-17 |publisher=[[Microsoft Office]] Support |archive-date=2019-08-28 |archive-url=https://web.archive.org/web/20190828234354/https://support.office.com/en-us/article/Open-a-document-after-a-file-corruption-error-47df9d48-2165-4411-a699-1786ac734bc3 |url-status=live }}</ref><ref name="datarecovery.net-corruption">{{Cite web |title=What kills your Flash Drive and how you can avoid it |url=https://www.datarecovery.net/newsletters/what-kills-flash-drive.aspx |access-date=2019-03-17 |publisher=DataRecovery.net |archive-date=2018-09-06 |archive-url=https://web.archive.org/web/20180906021351/https://www.datarecovery.net/newsletters/what-kills-flash-drive.aspx |url-status=live }}</ref> * Malicious software, such as a [[computer virus]];<ref name="techwalla-corruption" /><ref name="housonchronicle-corruption" /><ref>{{Cite web |last=Neagoe |first=Robert |date=2018-08-14 |title=Fix Windows 10 File Corruption Issues |url=https://windowsreport.com/fix-windows-10-file-corruption-issues/ |access-date=2019-03-17 |publisher=Windowsreport.com |archive-date=2020-07-28 |archive-url=https://web.archive.org/web/20200728192245/https://windowsreport.com/fix-windows-10-file-corruption-issues/ |url-status=live }}</ref><ref>{{Cite book |last=International Council of Electronic Commerce Consultants |title=Ethical Hacking and Countermeasures: Linux, Macintosh and Mobile Systems |date=2009-09-24 |publisher=[[Cengage]] |isbn=978-1-4354-8364-4 |pages=2.6–2.7 |language=en |chapter=Mac OS X Hacking |author-link=EC-Council |access-date=2019-03-17 |chapter-url=https://books.google.com/books?id=LYFoU2HG_AkC&pg=SA2-PA6 |archive-date=2020-07-29 |archive-url=https://web.archive.org/web/20200729151154/https://books.google.com/books?id=LYFoU2HG_AkC&pg=SA2-PA6 |url-status=live }}</ref> * A flash drive becoming too old.<ref name="datarecovery.net-corruption" /> File corruption is typically unintentional; however, it may be done intentionally as an act of [[deception]] so that a student or employee can receive an extension on their deadline. There are services that provide on demand file corruption, which essentially fill a given file with random data so that it cannot be opened or read yet still seems legitimate.<ref>{{Cite web |title=Corrupt a file - Corrupt file online, deliver on time! |url=https://corrupt-a-file.net/ |access-date=2019-03-17 |archive-date=2019-03-23 |archive-url=https://web.archive.org/web/20190323103439/https://corrupt-a-file.net/ |url-status=live }}</ref><ref>{{Cite web |title=Corrupt My File: Get your file corrupted for you |url=https://www.corruptmyfile.com/ |access-date=2019-03-17 |archive-date=2019-03-15 |archive-url=https://web.archive.org/web/20190315142313/https://www.corruptmyfile.com/ |url-status=live }}</ref> One of the most effective countermeasures for unintentional file corruption is [[Backup|backing up]] important files.<ref>{{Cite web |date=2019-03-07 |title=What is a Corrupted File? |url=https://support.intego.com/hc/en-us/articles/207114508-What-is-a-Corrupted-File- |publisher=[[Intego]] |access-date=2019-03-17 |archive-date=2020-07-28 |archive-url=https://web.archive.org/web/20200728185847/https://support.intego.com/hc/en-us/articles/207114508-What-is-a-Corrupted-File- |url-status=live }}</ref> In the event of an important file becoming corrupted, the user can simply replace it with the backed up version. ==Backup== {{Main|Backup}} When computer files contain information that is extremely important, a ''[[back-up]]'' process is used to protect against disasters that might destroy the files. Backing up files simply means making copies of the files in a separate location so that they can be restored if something happens to the computer, or if they are deleted accidentally. There are many ways to back up files. Most computer systems provide utility programs to assist in the back-up process, which can become very time-consuming if there are many files to safeguard. Files are often copied to removable media such as writable CDs or cartridge tapes. Copying files to another hard disk in the same computer protects against failure of one disk, but if it is necessary to protect against failure or destruction of the entire computer, then copies of the files must be made on other media that can be taken away from the computer and stored in a safe, distant location. The [[grandfather-father-son backup]] method automatically makes three back-ups; the grandfather file is the oldest copy of the file and the son is the current copy. ==File systems and file managers== The way a computer organizes, names, stores and manipulates files is globally referred to as its ''[[file system]].'' Most computers have at least one file system. Some computers allow the use of several different file systems. For instance, on newer MS Windows computers, the older FAT-type file systems of [[MS-DOS]] and old versions of Windows are supported, in addition to the [[NTFS]] file system that is the normal file system for recent versions of Windows. Each system has its own advantages and disadvantages. Standard FAT allows only eight-character file names (plus a three-character extension) with no spaces, for example, whereas NTFS allows much longer names that can contain spaces. You can call a file "{{Mono|Payroll records}}" in NTFS, but in FAT you would be restricted to something like {{Mono|payroll.dat}} (unless you were using [[File Allocation Table#Long file names|VFAT]], a FAT extension allowing long file names). [[File manager]] programs are utility programs that allow users to manipulate files directly. They allow you to move, create, delete and rename files and folders, although they do not actually allow you to read the contents of a file or store information in it. Every computer system provides at least one file-manager program for its native file system. For example, [[File Explorer]] (formerly Windows Explorer) is commonly used in Microsoft Windows operating systems, and [[GNOME_Files|Nautilus]] is common under several distributions of Linux. ==See also== * [[Block (data storage)]] * [[Computer file management]] * [[Data hierarchy]] * [[File camouflage]] * [[File copying]] * [[File conversion]] * [[File deletion]] * [[File directory]] * [[File manager]] * [[File system]] * [[Filename]] * [[Flat-file database]] * [[Object composition]] * [[Soft copy]] == Notes == {{notelist}} == References == {{reflist}} == External links == * {{Commons category-inline|Computer files}} {{Computer files}} [[Category:Computer files| ]] [[Category:Computer file systems|File]] [[Category:Inter-process communication]]
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Circa
(
edit
)
Template:Citation
(
edit
)
Template:Cite book
(
edit
)
Template:Cite journal
(
edit
)
Template:Cite news
(
edit
)
Template:Cite web
(
edit
)
Template:Commons category-inline
(
edit
)
Template:Computer files
(
edit
)
Template:Further
(
edit
)
Template:Main
(
edit
)
Template:Main article
(
edit
)
Template:Misleading
(
edit
)
Template:Mono
(
edit
)
Template:Multiple image
(
edit
)
Template:Notelist
(
edit
)
Template:Refimprove
(
edit
)
Template:Reflist
(
edit
)
Template:Section link
(
edit
)
Template:Short description
(
edit
)
Template:Webarchive
(
edit
)
Template:Which
(
edit
)
Search
Search
Editing
Computer file
Add topic