From aliyun.com has seen some people asking questions about commonly used linux commands. I have been searching for these days. now I will list all the commands in one go. I hope this will help you. I hope you will like it! ~ Common linux Commands & nbsp; NO & nbsp; Category & nbsp; PS1 & nbsp;
From kwang.cn
I have been looking for some questions about common linux commands for a long time. now I will list them all at once. I hope this will help you. I hope you will like it !~
Common linux Commands
NO classification PS1 command name usage and parameter function annotation
1. file management # ls-a lists all files in the current directory, including hidden files with a. header.
File management # ls-l or ll lists the details of files in the current directory
File management # pwd view the absolute path of the current directory
File management # cd .. back to the upper-level Directory of the current directory
File management # cd-back to the last Directory
File management # cd ~ Or cd back to the current user's home directory
File management # cd ~ The user name is returned to the specified user's home directory.
2. file management # Create a directory with the mkdir directory name
File management # mkdir? P recursively create some nested directories
File management # rmdir Rmdir empty directory name to delete an empty directory
3. file management # delete one or more files by rm file name
File management # rm-rf non-empty directory name recursively deletes everything in a non-empty directory, without the mention of-f
4. file management # view the file content on a single screen with cat file names
5. file management # View file content by page for more file names
6. file management # the file content can be viewed on controllable pages with less-than file names
7 File management # grep character file names view part of the file content based on character matching
8. file management # Move the files under the music/video path/file path to the absolute path
File management # Change the name of the mv file in the current directory
9. file management # cp/path/file. /move files under the absolute path to the current directory for 10 file management # find path-name "string" to find files and directories that match the string
11 File management # ln Source File link name creates a hard link to the source file of the current directory
Ln/home/test/usr/test1 create a hard link for/home/test under/usr
12 File management # ln Ln-s a B create the symbolic link B of a in the current directory
13 File management # touch file1 file2 create two empty files
14 disk management # df is used to report the total capacity, usage, and remaining capacity of the file system.
15 disk management # du-B/home view the current/HOME directory Capacity (k) and sub-directory Capacity (k ).
16 disk management # fdisk-l View system partition information
17 disk management # fdisk/dev/sdb is used to partition a new SCSI hard disk.
18 Disk Management # mkfs. ext3 Mkfs. ext3/dev/sdb1
Format the first primary partition of the first SCSI hard disk into an ext3 file system.
Mkfs. ext2 Mkfs. ext2/dev/sdb2 format to ext2 file system
19 disk management # mount-t file system type device access path
Disk Management # file system type
Iso9660 Optical Drive File system
Vfat Fat file system (windows)
Mount the optical drive # mount? T iso9660/dev/cdrom/mnt/cdrom
Mount FAT # mount? T vfat/dev/hda5/mnt/cdrom mount the fifth logical partition of the first ide
17 disk management # Umount/mnt/cdrom unmount/mnt/cdrom is empty
18 file permissions # chmod u + s file adds special permissions to the file owner
Chmod g + r file: add read permission to the file Group
Chmod o + w file adds write permission to other users of file
Chmo