As a contemporary front end, the boundaries of the front and back are getting smaller, to be more stable, learning Linux operating system knowledge is essential.
Why are Linux operating systems used on the server side?
1.linux performance is more stable with respect to Windows
2. Low upfront input costs, Linux is completely open source for free, Linux supports minimal installation, and consumes less than Windows systems in the same environment configuration compared to Windows server products.
3. Security is higher than Windows
Because of the Windows market share, most viruses are based on true Windows system development, while Linux is relatively small.
Windows system source closed, easy to implant unknown east, and Linux is fully open source, we can control everything
4. Easier to maintain
The Linux system itself provides good data backup tools, while Windows needs to use expensive local software
Windows systems are frequently updated, and enterprises are constantly updating their systems to ensure server security. Linux, however, has a relatively low update frequency.
Basic operation commands for Linux:
I. Get file Basic properties (3 ch-)
LS-L file name or null to query the basic properties of files for all files under the current directory
Ls-l Home
Total dosage 0
Drwxr-xr-x. 2 root root 6 September 2 19:00 Rongye
Drwxr-xr-x. 2 root root 6 September 2 19:31 TT
The first letter represents the meaning of:
D: For file directory (folder)
-: For file
L: Linked document (link file)
The following letters indicate: The master permission belongs to the group permissions other user rights
3 for a group, wxr which-for no permissions
Linux files have the basic permissions of nine, respectively, owner/group/others three identities each have their own Read/write/execute permissions.
Chown: Change the owner of a file, or you can change the file group (owner) at the same time
CHGRP: Change the group to which the file belongs (GRP)
Chgrp-r (when changing the genus of a directory file, if you add the-r parameter, the group of all files under that directory will change)
chmod: Change file properties (rwx properties for owner/group/other three characters)
Select All Points
R=4,w=2,x=1
Owner=4+2+1,
Group=4+2+1,
Other=0+0+0,
chmod 770 File path/file name
or chmod u=rwx,g=rx,o=x.
Two. File and directory Management (7)
Transform Catalog CD
List all directories under the current path LS
Output Directory name pwd
Create a new directory mkdir
Delete an empty directory RmDir
Copy current directory CP
Delete the current file or directory RM
CD Transform Catalog
cd[relative/absolute path]
CD ~[root User Directory]
CD-Back to the directory you just manipulated
Cd.. Skip to top level directory
LS: List directory
LS-A Lists all directories
Ls-l List properties for all directories
mkdir Create a new directory
-m default permissions to modify files when created
PWD Lists the directory where
Pwd-p list the connection path of the directory in which it resides
RmDir Delete empty directory under directory
If rmdir-p Delete all directories in the current directory
CP copy directory option: CP option copy path/File destination path/File
I: If the copy directory needs to be overwritten, prompt action is required
MV: Mobile Directory
MV I to move the directory to the path/file name
[~]#/tmp[[email protected] tmp]#~/. BASHRC BASHRC[[email protected] tmp]# mkdir mvtest[[email protected] tmp]# MV BASHRC mvtest
Getting Started with Linux learning