Abstract


  • Hide the nitty gritty of IO Device, so users can focus on manipulating the content inside the IO Device

  • Present programmer a clean Abstraction (抽象) of device-independent file

  • Examples are Printers & Modems etc


  • 2 parts - Filename & Inode Number, doesn’t have any metadata associated

File Descriptor

File Permission

  • In POSIX, file permissions are handled by rwx bits

File Compression

  • Process of reducing the size of one or more files to save storage space

Useful File Commands

  • Generate a hexdump from a binary file and display the output
xxd <BINARY_NAME.bin>

Terminologies


Special File

Block Special Files

  • Model IO Device that has a collection of randomly addressable blocks like like disk

Character Special Files

  • Model IO Device that accept or output a character stream like keyboard