Linux文件系统VS 基于Windows的文件系统

尽管许多地方相似, 但是Linux文件系统与MS-DOS等windows文件系统还是有许多不同:

  • 在 MS-DOS中, 盘符代表不同的存储设备(for example, A: 是软盘 and C: 硬盘). 在Linux, 所有的存储设备均很好的融合进了文件系统的层次结构。因此,/usr有可能在单独的硬盘上面/mnt/rem1是其他机器的另外一个文件系统.

  • 目录分隔符不一样 c:\home\chris  /home/chris

  • 在DOS中,文件名经常带有扩展名,并且代表文件类型与相关应用程序关联,而在Linux中扩展名不代表文件类型。

  • Linux的文件与目录均有权限控制,早期的DOS系统是单用户,后来才慢慢考虑多用户,完善权限管理等功能。

附Linux文件系统的说明:

  • /bin - Contains common Linux user commands, such as ls, sort, date, and chmod.

  • /boot - Has the bootable Linux kernel and boot loader configuration files (GRUB).

  • /dev - Contains files representing access points to devices on your systems. These include terminal devices (tty*), floppy disks (fd*), hard disks (hd* or sc*), RAM (ram*), and CD-ROM (cd*). (Applications normally access these devices directly through the device files, but end users rarely access them directly.)

  • /etc - Contains administrative configuration files.

  • /home - Contains directories assigned to each user with a login account.

  • /media - Provides a location for mounting devices, such as remote file systems and removable media (with directory names of cdrom, floppy, and so on). In Fedora and RHEL, many removable media are mounted automatically in this directory when the media is inserted (CD or DVD) or connected (USB pen drives or cameras).

  • /proc - Provides a mechanism for the kernel to send information to processes.

  • /root - Represents the root user's home directory.

  • /sbin - Contains administrative commands and daemon processes.

  • /sys - A /proc-like file system, added with the Linux 2.6 kernel and intended to contain files for getting hardware status and reflecting the system's device tree as it is seen by the kernel. It pulls many of its functions from /proc.

  • /tmp - Contains temporary files used by applications.

  • /usr - Contains user documentation, games, graphical files (X11), libraries (lib), and a variety of other user and administrative commands and files.

  • /var - Contains directories of data used by various applications. In particular, this is where you would place files that you share as an FTP server (/var/ftp) or a Web server (/var/www). It also contains all system log files (/var/log). In time, FTP, HTTP, and similar services will move to the /srv directory to adhere to the Linux Standards Base (www.freestandards.org/spec).

  • 你可能感兴趣的:(windows)