Get the App
SLTechnology News&Howtos  ›  Servers  › 

Linux commands that are easy to use in CVM

Shulou Source: shulou.com Published: 2022-06-03 05:47:54 09月21日 Update

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.

Tags: Commands services tasks server background security enterprise user output ease of use signal content again history provider file standard in progress easy to use input Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Tech Info Linux NVidia Apple