Install CentOS in the virtual machine, enter the system, if it is the system interface, press ATRL+ALT+F2 to switch to command mode,
After logging in, you can start learning Linux commands.
ls command: Run it is to list the contents of the folder, it may be a file or a folder
LS-L command: Lists the contents of the folder in verbose mode, showing the content format as follows:
Drwxr-xr-x 2 RONGSW Ground 6 Mar 08:46 Rong
D: The first bit represents the file type, D is the directory file, L is the link file,-is the normal file, p is the pipeline
RWX: 第2-4位 represents the owner-owned permission for this file. R is read, W is write, X is execute
R-x: 第5-7位 indicates that this file is owned by a user of the same group as the owner
R-x: 第8-10位 represents the permissions that other users have
The above example shows: Rong is a directory file, RONGSW has read and write permissions, and RONGSW the same ground group of users have read, execute permissions, other users have read, execute permissions. Note that: 6 indicates a file size of 6 bytes, and 11 08:46 indicates the last modified time.
The history command: It shows the histories of all commands executed in Linux.
mkdir command: Creates a new directory under the named path, returns an error message if the directory already exists, and does not display any information successfully
CentOS Learning One