Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common commands of XShell in Linux

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "what are the common XShell commands in Linux". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what XShell commands are commonly used in Linux.

Xshell is a powerful security terminal emulation software that supports SSH1, SSH2, and TELNET protocols on the Microsoft Windows platform. Xshell's secure connection to remote hosts through the Internet and its innovative design and features help users enjoy their work in a complex network environment.

First of all, we want to start with the simplest chat. After we enter the Xshell interface, we connect to the Linux server. When we first go in, we don't know what files we have. At this time, we can use the ls command to show which files we have, or we can use ls-l, and the simplest is ll. The ls command will display the file horizontally, which looks uncomfortable. Ll and ls-l have the same effect. Ll is recommended because it is the simplest.

We already know which files need to know how to enter the files we want to enter. In a graphical system like windows, we can double-click to open the files we need to open. In Xshell, we need to use the cd command. After we enter, the following faces are displayed. By default, it is under the root node root:

If we now need to enter the usr file is the local file we need to use: cd / usr/local, to enter, this time we show that we have entered the local file below, it should be noted that in the root root directory to enter other files need to be in front of the slash "/", in any other secondary or even multi-level directory can be entered directly.

If there is entry, there is also return. When we need to return, we need to use: cd.. / this command. Similarly, we can also add the superior file directory that we need to enter after.. / and then we can enter it directly.

Next is how to edit the file and view the file, if there is a host.xml file in the local directory, we need to edit or view it. The command to view is that the cat host.xml; edit command is vi host.xml, then press I to enter modify mode, or just look, if we suddenly don't want to modify, press ESC and write: Q! on the command line! Then enter to contact the editor, if we are finished editing need to save, we also need to press ESC, and then enter: wq enter.

To sum up, edit the file vi, press I to edit and save the end edit ESC: wq enter do not save the end edit ESC: Q! Enter

The .sh file name we need to use to execute the file under the Linux system. If we need to execute the host.sh file, we need to go to the directory where the file is located and execute it.

The above command may cause insufficient permissions. Finally, let's talk about an authorization command. If we want to authorize all .sh files under this file, we can write: chmod uplix.sh authorizes the sh file. Of course, we can replace it with a specific file name, depending on the need:

At this point, I believe you have a deeper understanding of "what are the common XShell commands in Linux?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report