A collection of commonly used Linux commands, it is recommended to save them!

Linux is the most commonly used system for server systems. It is open source and free based on unix, and the system stability is very high, so it is adopted by more servers. Today, Xiaoqian will introduce some of the more commonly used Linux commands for everyone to operate and learn.

One, the directory structure of linux

1.png

bin (binaries) store binary executable files

sbin (super user binaries) stores binary executable files, only root can access

etc (etcetera) stores system configuration files

usr (unix shared resources) is used to store shared system resources

home The root directory where user files are stored

root super user directory

dev (devices) is used to store device files

lib (library) stores the shared libraries and kernel modules needed to run programs in the file system

mnt (mount) The mount point where the system administrator mounts the temporary file system

boot stores various files used when the system boots

tmp (temporary) is used to store various temporary files

var (variable) is used to store files that need to change data at runtime

Two, linux commonly used commands

Command format: command -option parameters (options and parameters can be empty)

Such as: ls -la /usr

2.1 Operating files and directories

2.png

3.jpg

4.png

2.2 Common commands of the system

5.png

6.png

7.png

2.3 Compression and decompression

8.png

2.4 File permission operation

Interpretation of the description format of linux file permissions

9.jpg

10.png

19.jpg

3. Commonly used shortcut keys and symbol commands in linux system

12.png

Four, vim editor

vi / vim are the most commonly used text editors on Linux and they are very powerful. There are only commands and no menus. The following figure shows the switching diagram of the various modes of the vi command.

13.png

4.1 Modify the text

14.png

4.2 Positioning commands

15.png

4.3 Replace and cancel commands

16.png

4.4 Delete command

17.png

4.5 Commonly used shortcut keys

18.png

This article is from Qianfeng Education , please indicate the source for reprinting.

Guess you like

Origin blog.51cto.com/15128702/2668113