The Unix file types are the categories of file formats that a Unix-based system uses to provide context-sensitive behavior of file system items – all of which called files in Unix-based systems. POSIX defines categories: regular, directory, symbolic link, FIFO special, block special, character special, and socket.[1] An operating system may define additional categories (e.g. Solaris doors).
A regular file is any file format that the file system does not know and relies on applications to manipulate.[2] The other categories are for file formats that the file system inherently knows and can manipulate.
The ls -l
command reports a file's category via the character before the permissions information. The file
command reports file format information; even for regular files.[3]
A file is nothing more than a stream of bytes ...
file
". IEEE Std 1003.1-2017 (POSIX). The Open Group. 2018. Archived from the original on 2018-10-12. Retrieved 2023-10-26.
© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search