Common Linux terminal commands

Source: Internet
Author: User

1 command line daily shortcut keys:

    • CTRL + U-cut the content before the cursor

    • CTRL + K-cut the cursor to the end of the line

    • CTRL + Y-paste

    • CTRL + E-Move cursor to end of line

    • CTRL + A-Move the cursor to the beginning of the line

    • ALT + F-Jump down a space

    • ALT + B-jumps back to the previous space

    • ALT + Backspace-delete the previous word

    • CTRL + W-cut the previous word of the cursor

    • Shift + Insert-Pastes text inside the terminal

2 sudo command

Visudo can set the sudo permissions of different accounts;


3 pausing and running commands in the background

    • CTRL + Z-Pause Application

    • FG-Re-call the program to the front desk


4 Nohup order;

Nohup wget://xxxx.com/a/b/c


5 at command to run the appropriate program at a specific time:

At 10:38 PM friat> cowsay ' Hello ' at> CTRL + D

The above command can run the program Cowsay on Friday 10:38 P.M..

The syntax used is the append date time after ' at '. When the at> prompt appears, you can enter the command you want to run at that time.

CTRL + D returns to the terminal.


6 Manual use of Man

The Man handbook will give you an outline of the commands and parameters used to teach you how to use them. The man handbook looks dull and stiff. (I thought they were not designed to entertain us.)

But that doesn't mean you can't do anything to make them look beautiful.

Export Pager=most

You need to install ' most '; she will make Your Man handbook more colorful.

You can use the following command to set the specified president for the man Manual:

Export manwidth=80

Finally, if you have a browser available, you can use-H to open any of the man pages in the default browser.

Man-h <command>

Note that the above command only works if you set the default browser to the environment variable $browser.

7 Use of the Htop command to view the running process;

Yum install-y Htop may need to be installed with Yum



8 Ranger Command to browse the file system;


9 Cancel Shutdown:

Shutdown-c

Note: If the shutdown has started, it may be too late to stop the shutdown;

Try

Pkill shutdown;


10 a simple way to kill a suspended process:


Simply enter the following command in the terminal and click on the application you want to kill in the window.

Xkill

What if the whole system hangs up?

Press and hold the ' Alt ' and ' SYSRQ ' on the keyboard, then slowly enter the following keys:

    • Reisub

You can restart your computer without pressing the power button.


Common Linux terminal 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.