Linux Systems-File systems-Common commands

Source: Internet
Author: User

Linux Systems-File systems-Common commands a common command 1 Viewing partitions: DF [-h] 2 Viewing the size of files and directories: Du 3 View detailed parameters for files: Stat 4 MD5 value of the checksum file: md5sum 5 Detect Repair File system: Fsck,e2fsck (Single-user mode after uninstalling file system)
Two adding partitions to a hard disk 1 Partitioning: Fdisk/dev/sdb 2 Creating the file system: MKFS.EXT3/DEV/SDB1 3 trying to mount: Mount/dev/sdb1/mnt/test 4 Write the configuration file for reboot to mount automatically:/etc/fstab fstab file Format: Partition number mount point file system format default setting whether to detect 0/1 detection sequence 0/1/2
three implementation of Swapfile 1 Creating a directory swap : Mkdir/var/swap 2 Modify permissions so that ordinary users can also operate, not required steps: chmod 777/var/swap 3 Copying a file Dev/zeor column: dd if=/dev/zeor of=/var/swap/file.swp bs=1024k count=64 4 Establishment: MKSWAP/VAR/SWAP/FILE.SWP 5 edit fstab:/var/swap/file.swp Swap swap defaults 0 0 6 View current swapfree:free-m assumed to be 1024x768 7 Open: Swapon/var/swap/file.swp 7 views again: Free-m is (1024+64=1088) 8 Close: Swapoff/var/swap/file.swp 9 View again:Free-m is (1024x768)
attached: my_qq872785786 and Linux system basis corresponding network disk data link: Http://pan.baidu.com/s/1ydewA Password: Kaek
Welcome to Exchange Learning-Android embedded development, to get more information for free, please contact me-share the spirit, provide 1000g+ technical information
iOS, Android, embedded, and various programming languages



Linux Systems-File systems-Common commands

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.