Some advanced Linux skills

Source: Internet
Author: User
Use some advanced techniques in Linux-general Linux technology-Linux technology and application information. For more information, see the following. Ps-view the currently running process. Example: $ ps
Kill {PID}-stop any process by using PID. Example: $ kill 1012
Killall {Process-name}-stop any Process by name. Example: $ killall httpd
Ps-ag-obtains information about all running processes. Example: $ ps-ag
Kill 0-stop all processes (except your shell). Example: $ kill 0
Linux-command &-Background execution process, for example: $ ls/-R | wc-l &
Ps aux-display the process owner, for example: $ ps aux
Ps ax | grep process-U-want-to see-view a specific process, for example: $ ps ax | grep httpd
Top-view the currently running processes, memory, and CPU usage. Example: $ top

VIM also supports word translation.
Of course, I use vim not only to edit files, but also to view English files, such as README, INSTALL, and TODO in various source code packages. There are a lot of unknown words here. Of course, you can use starship to translate, but the mouse is used, which is much less efficient. So I thought of translating words in vim. This is actually not technical.

Install the translation software under one character.
The sub-project sdcv of interstellar translation king, find a version you can install. Source code installation is only./configure; make;

Sudo make install only three steps. Some specific releases may not be compiled. So find a version you can install. Redhat AS 4 compiled 0.40. The latest 0.42 is unavailable. Glibc is too demanding. Then install the dictionary. If you have installed starship, sdcv uses its dictionary by default. They are all the same authors.

Configure vim.
In your ~ /. Add this sentence to vimrc. Note that the shortcut key is ctrl +. If you have used the configuration file, select another key.

[Php] nmap :! Sdcv "" = expand ("") [/php]

Now read README in vim, and press Ctrl + if you encounter a word that does not, it calls sdcv for translation.
Related Article

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.