Xshell Getting started, frequently used commands

Source: Internet
Author: User

First of all, your Xshell first connect to the server that needs to be connected remotely.

Second, open the connection, the following page appears, it proves that the connection with the server is normal.

Third, next, we can use the command to do a series of operations.

3-1:CD is going to the next Level directory command

Example: Cd/folder1/folder2/folder3

3-2: Copy file: cp-r "file name to copy"/"File name copied"

Example: Copy filename renamed to FileName1

Cp-r filename/filename1

3-3:netstat is to see if the port is occupied

Example: Netstat-app|grep 10086

3-4: Edit file: Vim

Example: Vim Server.xml

3-5: Press and hold the I key to enter edit mode
After editing, press and hold ESC to cancel editing
Input: wq! Save
: q! is not saved

3-6:recover

3-7: View Log Details: ① Open directly: tail-f "log file name"

② Open 200 line: tail-f-n200 "log file name"

Example: View log details
Tail-f-n200 XXXXX.log

3-8:telnet Address Port

Xshell Getting started, frequently used 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.