Linux file system

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.