Common Linux Commands

Source: Internet
Author: User
Tags gz file

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.