1) Linux Fundamentals:
1. Consisting of small programs with a single purpose; Assemble small programs to accomplish complex tasks
2. Everything is a document
3. Avoid capturing user interfaces as much as possible
4. The configuration file is in plain text format
2) command format: Command options parameters (options are divided into short options "-" Input shortcuts and long options "-" meaning: Parameters: the command function of the object; commands are divided into internal commands (System shell commands) and external commands (which are generated by other programs) to see the command attribution)
3) How to help in Linux
1. External command:--HELP
2. Internal command: Help
3. Can get detailed help from man
4. Help can be obtained via info
3) path
1. Absolute path: The input method starting with "/" is absolute path
2. Relative path: with "." or ".." Start with a relative path
4) command
1.cat/proc/cpuinfo Viewing CPU information
2.cat/proc/meminfo Viewing memory information
3.free Viewing memory usage
4.Uptime Monitor CPU Status
5.uname-r Viewing the kernel version
6.hostname Viewing host names
7.ifconfig View IP Information
8.fdisk-l Viewing hard disk information
9.mount Mounting
4) directory, file management
1.ls View
2.CD switching
3.pwd View your current location
4.mkdir creating a directory-p creating a multilevel directory
5.touch Creating files
6.RM, file, stat delete
7.CP Copy MV Move
8.cat Viewing file contents
9.WC statistics file Rows-L lines-W number of words-c characters
10.du statistics file and directory size-S summary display size-H readable form
11.vim three modes: Command mode (dd Delete, yy copy, [n]yy multi-line copy, p paste after cursor, p paste before cursor, set NU display line number, set Nonu suppress row count, ctrl+f or down page, ctrl+b or Up page UP, G jumps to the end, #G jumps to # line, DD deletes the cursor line, #dd Delete the contents of the # from the cursor), insert mode, last line mode (W save, Wq save and Exit!) Mandatory three can be used in combination)
5) Archiving and compression
1. Compact format: GZ, bz2, XZ
2.zip (end of. zip, can compress directory) format: Zip compressed file name uncompressed: Unzip (-d specifies a compressed path) does not delete the source file
2.gzip Delete source files by default extract Gunzip
3.BZIP2 the source file disappears after compression is complete
4.tar option Package name package file or directory (-ZCF archive and call gzip compression,-ZXF call gzip decompression)
6) File Search
1.which the absolute path used to find the command
2.alias command Aliases
3.find Global Search (-name Search by name,-iname ignore case, * wildcard character for any characters?) Represents a single character,-type is found by file type)
Linux basic commands