官术网_书友最值得收藏!

Filesystems

POSIX not only defines how to read and write a file from a POSIX-compliant operating system, it also defines where files should be located on the filesystem. In Chapter 8, Learning to Program File Input/Output, we will go into great detail about how to read and write to a filesystem using C, C++, and POSIX. 

With respect to the layout of the filesystem, POSIX defines where files should be located, including common folders such as the following:

  • /bin: for binaries used by all users
  • /boot: for files needed to boot the operating system
  • /dev: for physical and virtual devices
  • /etc: for configuration files needed by the operating system
  • /home: for user-specific files
  • /lib: for libraries needed by executables
  • /mnt and /media: used as temporary mount points
  • /sbin: for system-specific binaries
  • /tmp: for files that are deleted on reboot
  • /usr: for user-specific versions of the preceding folders
主站蜘蛛池模板: 高阳县| 高要市| 龙里县| 鲁甸县| 盐城市| 安多县| 崇文区| 灵山县| 固原市| 河曲县| 深圳市| 府谷县| 鲜城| 哈巴河县| 陆河县| 云龙县| 千阳县| 八宿县| 中方县| 靖安县| 临猗县| 林西县| 伊金霍洛旗| 昭通市| 南川市| 厦门市| 邳州市| 东乌| 长兴县| 柞水县| 图们市| 和硕县| 扶沟县| 塘沽区| 兴安县| 囊谦县| 嘉定区| 大姚县| 定南县| 防城港市| 左云县|