Common Xshell Run commands

Source: Internet
Author: User

Recently contacted Xshell this software, using this software we to connect the Linux system, in the after we may have two eyes a smear, small make up to take you to learn some common shell commands.

First of all we want to talk to you from the simplest, we enter the Xshell interface after connecting to the Linux server, just go in when we do not know what files we have, this time we can use the LS command to show which files, or use Ls-l, the simplest is LL. The LS command will display the file horizontally, looking uncomfortable, LL and ls-l are the same effect, it is recommended to use ll because it is the simplest

We already know what the file needs to know how to enter the file we want to enter, in the windows of such a graphical system we can use double-click this way to open the file we need to open, in Xshell we need to use: cd command, we enter the following surface is shown below, At this point the default is under root node root:

If we now need to enter the USR file in the local file we need to use: cd/usr/local, to enter, this time we will show that we have entered the local file, you need to note that in the root directory to enter the other files need to precede the first slash " /", in any other level two or even multilevel directory can be without direct access.

There is a return to the same and there is a need to return the time we need to use: CD. /This command, also we can in the. /And then add the parent file directory that we need to go to directly into the

In the next step is how to edit the file and view the file, if there is now a host.xml file in the local directory, we need to edit or view it.   The command to view is Cat Host.xml, the edit command is VI host.xml, then press I, go to modify mode, or just look, if we suddenly do not want to change, press ESC and then write down on the command line: q! Then enter the contact editor, if we are finished editing need to save, also need to press ESC, and then enter: Wq carriage return.

Summary is: Edit file VI, press I for Edit save end edit Esc:wq carriage return not save end edit esc:q! Enter

The./File name We need to use to execute files under Linux system. SH, if we need to execute the host.sh file, we need to go to the directory where the file is located and then execute it.

The above command run is likely to have the problem of insufficient permissions, and finally tell you an authorization command, if we want to give this file under all. sh file authorization, we can write: chmod u+x *.sh to SH file authorization, of course we can also replace * with the specific file name, depending on the need to decide:

Common Xshell Run 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.