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

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
主站蜘蛛池模板: 贵州省| 行唐县| 新营市| 乳山市| 汝州市| 都昌县| 宁海县| 法库县| 兴和县| 岳池县| 区。| 且末县| 九龙县| 汶上县| 吴桥县| 军事| 疏勒县| 合山市| 苏尼特左旗| 浠水县| 文水县| 通城县| 九台市| 丹寨县| 富宁县| 丰台区| 延津县| 新泰市| 舞钢市| 黄冈市| 新龙县| 甘肃省| 张北县| 上栗县| 石门县| 耿马| 宁安市| 慈溪市| 莆田市| 台湾省| 高邑县|