2017-10-2: Review Linux commands

Source: Internet
Author: User
Tags create directory

Create directory: mkdir directory name

Create file: Vim file name and write file content Touch file name

View File: Cat file name

View Directory: CD directory ll directory under file or directory details ls display directory under file name

Delete file contents: Cat > File name

Write file content: Vim file name

Rename a file or directory: MV file or directory name

Delete a file or directory: RM-RF file or directory name

Change file or directory permissions: chmod permissions digital file or directory name r=4 read m=2 write X=1 Execute

Copy directory: CP-RF the path or CP where the current file path is copied to

Copy file: Cat file name > file name Overwrite original file contents cat file name >> file name redirect Append original file end

Cross-server replication: Scp-r-P (uppercase P) 5888 current server file path cross-service User: Server address: User name

Compressed file or directory: Zip directory. zip directory unzip directory. zip

TAR-CVF directory. Tar directory tar-xvf directory. Tar

View process: Ps-ef |GERP process name (API CMS)

Kill process: kill-9 process number

Start process: Bin directory under startup.sh./startup.sh

Boot process appears java_home:source/etc/profile reboot system file

The configuration file for the code package is copied under the classes file. War package to work, replace the configuration file, check the process, delete the WebApps process under the. War code package, copy the. War package to replace the classes configuration file to WebApps, and start the process.

The replacement configuration file is due to the occasional development of negligence that would mistake the database.

2017-10-2: Review Linux commands

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.