1. View history
2. See if Tomcat starts Ps-aux|grep Tomcat can also be replaced by Java
3. Check the Tomcaat console located under Apache-tomcat=8.0.21/logs tail-f catalina.out
4, vi file name, Q: Do not save the exit, if CentOS again knock exit
5, change the current user password: 1:whoami 2: Enter a new password
6, query the current disk space information: DF-HL
7. View IP Address: ifconfig
7, run the RZ command (if there is no RZ command, run yum install lrzsz installation) SZ command send file to Local: RZ command to upload files locally to the server:
8, to see how to use the Linux command 1, first use the type command, to see whether it is an internal command or external command
If internal command: Help command
If external command: command–help/-h
Super-verbose command: Man command
9. Main IP jump: SSH [email protected]
10. View File Size: Du
Second, du common options:
-H: Displayed in a human-readable way
-A: Displays the amount of disk space occupied by the directory, and also shows the size of the disk space under which the directory and file is being consumed
-S: Displays the amount of disk space occupied by the directory, and does not display the amount of disk space the subdirectory and file occupy
-C: Displays the amount of disk space occupied by several directories or files, and also counts their sums
--apparent-size: Displays the size of the directory or file itself
-L: Statistics hard link takes up disk space size
-L: The amount of disk space the file that the statistical symbolic link points to occupies
11. Unzip the zip file: Unzip Map-web.zip
12. Package as x.tar.gz file: Tar zcvf map-web.tar.gz map-web
13. Copy files: SCP map-web.tar.gz [email protected]:/opt copy to opt directory
13.1 Copy to the specified directory under the same system CP [-ADFILPRSU] source file (source) destination file (destination)
14, Decompression: Tar zxvf map-web.tar.gz
14.1 Unzip to the specified directory tar zxvf map-web.tar.gz-c the specified directory
Common Linux Commands