File - File

> File (System, Transfer, Storage)

1 - About

A file is a logical representation of multiple block that can be accessed and manipulated at once by a program.

A file is durable in the sense that it remains available for programs to use after the current program has finished.

Advertising

3 - Properties

3.1 - File System attributes

A file has three important attributes:

A file consists also of attributes such as:

Example of properties from the Linux stat utility

  File: `testFile.txt'
  Size: 4               Blocks: 8          IO Block: 4096   regular file
Device: ca02h/51714d    Inode: 2522975     Links: 1
Access: (0644/-rw-r--r--)  Uid: (  500/  oracle)   Gid: ( 1001/oinstall)
Access: 2015-09-15 13:50:26.000000000 +0200
Modify: 2015-09-15 12:43:18.000000000 +0200
Change: 2015-09-15 12:43:18.000000000 +0200

3.2 - Open

List of open files: see IO - Diagnostic/Monitoring

File handles (open file) are scarce, finite resources. Because they are loaded in memory, the maximum number of open file is always a parameter of the file system (Generally in the OS). You can them run out of them if you don't close in your application the stream (ie the in-memory file representation of a file) up properly, just like database connections.

Advertising

3.3 - Type

The type of file can found:

4 - Management

4.1 - Delete

4.2 - Location

The location of a file is given:

  • logically by its path
  • that the file system physically translate to an address on the file store

5 - Glossary

5.1 - Binary

All data on a computer are stored and manipulated as bit.

When talking about a binary file, it generally means that is not textual data but in another format. See Bit - Binary Data (Structure)

Advertising

6 - Documentation / Reference

file/file.txt · Last modified: 2019/08/15 09:06 by gerardnico