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 shortcut keys in Linux/Unix

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly shows you "what are the shortcut keys in Linux/Unix", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "what are the shortcut keys in Linux/Unix" this article.

Ctrl + a switch to the command line to start

This operation is the same as that implemented by Home, but this combination can be used if Home cannot be used in some unix environments; this is also valid in vim under Linux; and it is also valid in many file editors in windows.

Ctrl + e switches to the end of the command line

The result of this operation is the same as that implemented by END, but this combination can be used if the end key is not available in some unix environments; this is also valid in vim under Linux; and it is also valid in many file editors in windows.

Ctrl + l clears the contents of the screen with the same effect as clear

Ctrl + u clears the contents before the cut cursor

This command is useful and valid in nslookup. I sometimes see my colleagues delete the shell command word by word, which is very broken! Actually, it can be done with a Ctrl + u.

Ctrl + k cut the content after clearing the cursor

Ctrl + y paste the characters you just deleted

This command is strong, and the characters deleted are likely to be several strings, but most likely an one-line command.

Ctrl + r look up in the history command (this is very useful, enter the keyword to call up the previous command)

I highly recommend this command. Sometimes when you have a lot of history, you want to find a more complex one. Directly here, shell will automatically find and call it, which is very convenient.

Ctrl + c terminates the command

Ctrl + d exit shell,logout

Ctrl + z goes to the background to run

However, processes running in the background from Ctrl + z are terminated after the current user exits, so use the nohup command & because the purpose of the nohup command is that the process continues to run after the user exits, and now many scripts and commands are required to remain valid when root exits.

The following is recharged. You are not very familiar with it. I use a lot of operation methods:

!! Repeat the last command

History displays all the numbered + history commands you have executed. This can be matched! Editor to execute so-and-so command

↑ (Ctrl+p) displays the previous command

↓ (Ctrl+n) displays the next command

! $displays the most recent parameter of the system

The last one is more useful, for example, I use cat / etc/sysconfig/network-scripts/ifconfig-eth0 first, and then I want to edit it with vim. The general practice is to display the last command with ↑, then move to the front of the command with Home, delete cat, and then enter the vim command. In fact, you can use vim! $instead.

Developers and administrators, after mastering the above usage, basically work very efficiently; in the end, you will inadvertently find that between fingers, you will easily deal with many complex instructions.

The above is all the contents of the article "what are the shortcuts in Linux/Unix?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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