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