Linux command expand 2019.8.2

Following 2019.8.1

four. Linux common commands

Extended:

 

5. Query Help

         Command Category: internal command, external / configuration commands

  Internal commands: Run command on the kernel space and kernel space can call a hardware device directly.

Man command (need to rely more command): man command

         Man Manual (manual), a total of eight chapters

 

 

6. catalog of common commands

         The directory structure under Windows:

Formatting operation is the installation file system, but also to disk partitions.

         Directory structure of Linux:

                  Linux can partition; all files in the root directory (the root directory is the most basic foundation, equivalent to the drying of clothes rack); the rest is equivalent to partition hangers. Storage devices must be mounted before use.

         (/ Etc / fstab- boot automatically mount) command on disk partitions and mount

                  df -h to view the disk mount case;

     dd- create a virtual disk (must use zero file)

dd if = / dev / zero of = / root / image bs = 1024k count = 100 create a loop device (i.e., virtual disk);

                  fdisk (disk file) do disk partition:

                           sd -scsi type of disk (hd-IDE disk type);

                           a- first disk (bcd ......)

                          1 through a partition (2,3,4 ...)

                  Mkfs: Format (create a file system);

                  Mount: Mount disk;

                  Umount: disk unloaded

Summary: In Linux, by mounting the storage space associated manner directly or indirectly to the root, form a tree structure.

 

7.Linux main directory

 

8. wildcard file

 

Extended:

         Grep命令(三剑客之一)——行过滤(查看文件中的匹配,过滤某一行)

         Grep [选项] [匹配的字符] [(要执行的)对象]

         -v反选;-i忽略大小写;^$空白行

9.切换目录(cd)

         绝对路径:从根开始,写完整

         相对路径:相对当前路径而言,所要处理的目录

 

 

Guess you like

Origin www.cnblogs.com/guo-zhi-ying/p/11290198.html