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

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
主站蜘蛛池模板: 普定县| 胶南市| 许昌县| 泾源县| 大厂| 林周县| 遂溪县| 莒南县| 伊金霍洛旗| 鄂伦春自治旗| 新疆| 肃北| 天峨县| 旌德县| 五家渠市| 鄢陵县| 靖宇县| 册亨县| 天台县| 满洲里市| 兴仁县| 敦煌市| 高阳县| 金溪县| 北海市| 抚宁县| 进贤县| 永川市| 华蓥市| 永胜县| 定西市| 大厂| 屯门区| 甘德县| 江都市| 伊金霍洛旗| 天镇县| 栾城县| 舟曲县| 无锡市| 门源|