Common Commands under Linux

Source: Internet
Author: User
Tags save file

NETSTAT-ANP | grep 8080//you can clearly know which program is using the 8080 portVim file name//Open the corresponding fileKey ESC//Exit Edit: Q!//do not save file, exit directly: Q//Exit VI: x//Save (if the current file has been modified) and exitZZ//Save and exitCD.. //return to the top level directoryls//View all files in the current directoryls-lth//View the files of the current directoryls-L//to see when a file was modified/CP Original Directory/*New directory///Copy all files from the original directory to the new directory
/CP-RF Original Directory/* new directory/ //force copy all files from original directory to new directory sz file name Download files to local tar CF 201702271530.tar/app/appuser/zhun/* //Create compressed package to/app/appuser/zhun/ TAR-XF 201702271530.tar //Decompression package sftp 123.11.123.55 //sftp Connect to 123.11.123.55
Password

put/app/appuser/zhun/201702271530.tar/app/appuser/packages/ Send the compressed package from the/app/appuser/zhun/directory to the server/app/appuser/packages/
RM-RF app
Ps-ef|grep Tomcat

Common Commands under Linux

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.