File Concept

Basic Concept

File 是 OS 對 nonvolatile storage 提供的 logical storage unit。Application 不直接處理 SSD / HDD 的 sector 或 block,而是透過 file name、attributes、operations 存取資料。

從 user 角度,file 是一個有名字的資料集合;從 OS 角度,file 是一個 abstract data type,支援 create、open、read、write、close、delete 等操作。