Linux practice engineer study NOTE 4: Managing Disk File Systems

Source: Internet
Author: User
Linux practice engineer study NOTE 4: Manage the disk file system-general Linux technology-Linux technology and application information. The following is a detailed description. Original Author: junger

Mount device name mount point
Mount/dev/fd0/mnt/floppy
Optical Drive (IDE)/dev/cdrom (/dev/hdx)
Optical Drive (SCSI)/dev/scdN (N = 0, 1 ...)
Hard Disk (IDE)/dev/hdX (X = a, B, c ...)
Hard Disk (SCSI)/dev/sdX (X = a, B, c ...)
U Disk/dev/sdX (X = a, B, c ...)

Pop-up disc # eject
Reclaim # eject? T
Because the USB device has built-in USB-SCSI conversion interface, it is considered as a SCSI hard disk
# Mkdir/mnt/u
# Mount/dev/sda1/mnt/u
The default kernel supports SCSI and USB interfaces.
# Modprobe usb-storage check whether the usb-storage module is loaded; otherwise, the USB device cannot be automatically recognized.

# Mount? T vfat/dev/hda2/mnt/c
# Mount? T ntfs/dev/hda3/mnt/d the kernel must be re-compiled to support NTFS
# Mount? T iso9660/dev/cdrom/mnt/cdrom
# Mount? T vfat? O iocharset = gb2312/dev/sdb1/mnt/u
Commonly used character encoding: gb2312 and utf8
# Mount/dev/sdb2/MT/d? O iocharset = utf8, ro, uid = redhat, umask = 0077

Use USB flash drives in Linux
# Ls/dev confirm that the device has been recognized
# Mount-o iocharset = gb2312/dev/sda1
Press ctrl + F to flip (or space) ctrl + B (roll up)
Ls-a: Show Hidden Files (Files starting)
File Permission rws s indicates the user who executes the program and temporarily has the same authority as the owner to execute the program.
The-r parameter of the cp-r source object indicates that the sub-directories are copied together.
Rm-I confirm deletion
-R: delete sub-Directories
-F force Delete
Du disk or directory space used
Df disk or directory available space
Cat> file1 is equivalent to the input text. After the input, ctrl + C or ctrl + D ends.
> A symbol is appended to the end of a file.> a symbol is used to create a new file.
Less: Scroll up and down File Content
Which searches for files in the directory set by $ PATH.

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.