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

Linux commands that are easy to use in CVM

2025-04-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

What are the more useful Linux commands in the CVM? When using Linux CVM, you often need to use command line control. Here we introduce several Linux commands that are easy to use for your reference.

1. Fc: edit the most recent command and execute it automatically

A long command was executed, but the wrong execution of the command failed and needed to be corrected and executed again.

2. Disown: removes the task from the "background tasks" list (the returned result of the jobs command), preventing the current shell from sending a HUP signal to each specified job when terminating the login session.

Command usage

Remove the most recent background task in progress $disown# remove all ongoing background tasks $disown-r remove all background tasks $disown-a # do not remove background tasks, but let them not receive SIGHUP signals $disown-h use example

3. Ctrl+x+e: open the editor to enter a command and execute it automatically. Suitable for executing more than one command at a time.

4. Add a space before the command: hides the running command so that it is not recorded in the history command.

Commands that contain sensitive information such as passwords do not want to be displayed in historical commands for security reasons.

5.! (2 exclamation points): to call the last run command, you need to execute the previous command again

6.SSH tunnel: ensure secure communication between MySQL client and server

7. Tee: read from standard input and then write to standard output and files.

You want to track the output of the command manually and write the output to a file at the same time.

The above is an introduction to several commands of Linux. CVM is easy to use and provides free site management assistant. You can reinstall the system and change lines by yourself, and configure FTP and IIS with one click.

As a senior professional cloud computing service provider and cloud security service provider in the industry, it is committed to providing cloud servers for Internet enterprise users and enterprise users in traditional industries. Its products have the characteristics and advantages of "security and stability, easy to use, high service availability, high performance-to-price ratio" and are designed to be customized for enterprises to meet the needs of rich and diversified application scenarios.

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

Servers

Wechat

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

12
Report