file management Flashcards
File management
is the storing, naming, sorting and handling computer files
file
named collection of related information that is recorded on secondary storage such as magnetic disks, magnetic tapes and optical disks
File Concept
A file is a collection of similar records
Path
The path refers to the exact location of the file and indicates to the computer user the entire sequence that must be followed to find the file
File Extension
The file extension appears after the period in the filename and is used to indicate the type of format the file is in.
Zipping (Compressing
Zipping is the process of packaging a folder that contains multiple files into a single file (called a “Compressed” or “Zipped” folder).
File Attributes
- Name – only information kept in human-readable form.
- Identifier – unique tag (number) identifies file within file system
- Type – needed for systems that support different types
- Location – pointer to file location on device
- Size – current file size
- Protection – controls who can do reading, writing, executing
- Time, date, and user identification – data for protection, security, and usage monitoring
- Information about files are kept in the directory structure, which is maintained on the disk
File Operations
Create: A new file is defined and positioned within the structure of files.
Delete: A file is removed from the file structure and destroyed.
Open: An existing file is declared to be “opened” by a process, allowing the process to perform functions on the file.
Close: The file is closed with respect to a process, so that the process no longer may perform functions on the file, until the process opens the file again.
Read: A process reads all or a portion of the data in a file
Write: A process updates a file, either by adding new data that expands the size of the file or by changing the values of existing data items in the file
Operations on Files
Creating a file
Reading a file
Writing a file
Deleting a file
Repositioning in a file
Truncating a file
File Types – Name, Extension
File type refers to the ability of the operating system to distinguish different types of file such as text files source files and binary files
Ordinary files
- These are the files that contain user information
Directory files
- These files contain list of file names and other information related to these files
Special files
- These files are also known as device files.
- These files represent physical device like disks, terminals, printers, networks, tape drive etc.
Types of special files
- Character special files - data is handled character by character as in case of terminals or printers.
- Block special files - data is handled in blocks as in the case of disks and tapes
File Management Systems
A file management system is that set of system software that provides services to users and applications in the use of files