Linux basic command
Date +% Y%m%d date
Cal 7 2005 Calendar
Bc calculator
The [tab] key completes the command
Shutdown reboot halt poweroff sync shutdown command
/ etc/paswd / etc/shadow
-rwxrwxrwx rust 4 wags 2 x girls 1
Ls-al
Chgrp users install.log changes the group to which the document belongs
Chown root install.log changes the user of the document
Chmod 777 install.log modify permissions
Mkdir testing create directory
Rmdir delete directory
Su. / switch directories
Mount
Df-akmhti
Du-sb df-I
Rm passwd deletes a document
Ln-s / bin / root/bin
Fdisk / dev/hdb split management disk
Mke2fs format disk fsck scan disk
Mkfs-t ext2 / dev/hda create a file system
Mkdir / mnt/hdb5 create directory
Mount-t ext3 / dev/hdb5 / mnt/hdb5 mount disk
Umount / mnt/hdb5 uninstall
Pwd-p display directory
Echo $path
Cp / etc/ / tmp copy the tmp folder to etc
Rm-f / tmp
Mv / tmp. / ttp
Gzip zcat bzip2 bzcat compressed file
Tar
Vi File Editor
General mode vi test.txt
Edit mode: press an I to enter, press ESC to exit