1. File System composition
/usr/bin,/bin--holds commands that all users can execute
/usr/sbin,/sbin--store commands that only root can execute
/home-User default host Directory
/proc--Virtual file system, storing current memory image
/dev--store device files
/lib--The shared library required for the system program to run
/lost+found--to store some system error check results
/ tmp-store temporary files sticky bit t, each user has write permission, but only the owning user has delete permission
/etc--System configuration file
/var-contains frequently changing files, such as mail, log files, scheduled tasks, etc.
/usr-stores all commands, libraries, manual pages, etc. similar to the C:\Windows directory
/MNT--Installation point of the temporary file system
/boot--kernel file and bootstrap file save location
/usr/local--third-party software installation location similar to C:\Program Files
2, File system common commands
DF Df–h or df–m----View partition usage
Mounted on----mount point
FileSystem--Specific hardware device name
View file, directory size: du
Du–h--View File size
Du–sh----View Directory size
FSCK, E2FSCK---Detect and Repair file system (single-user mode after uninstalling file system execution)
FILE----Determine the filename type
3. Device Mount
Mount Optical Drive
- Mkdir/mnt/cdrom---Create temporary mount points, any directory is OK
- Mount/dev/cdrom/mnt/cdrom--To Mount
- Umount/mnt/cdrom---Uninstalling the optical drive tip: The device is busy and cannot be uninstalled in the Mount directory
- Eject---unmount the optical drive
4. Partitioning and formatting principles
FDISK/DEV/SDB----Set the partition of the SDB hard disk
M--Help
P--Show partition table
N--Add a new partition
Trivia