Linux common commands summary_2

1. Kill
ctrl + z: Direct ctrl + z in the terminal will suspend the job being executed.
ctrl + c: Directly interrupt the job being executed.
bjobs: View all jobs under the current user name.
bjobs -l: View all jobs under the current user name.
bkill jobid: Kill the job corresponding to id.
kill% 1: kill the first job running in the background, 1 is not jobid.
Second, gvim
set wrap gvim's automatic line wrap
set nowrap without line
shift + g directly switch to the last line of text
gvimdiff file1 file2 compare file 1 and file 2

Third, LINUX Ubuntu switch input method
Ubuntu boot default ibus does not start, so the Chinese input method is not displayed.
Perform the following operations to start ibus:
1. System → Preferences → Input Method → ​​Enable input method feature VNC window enables input method
2. Cancel the configuration of .cshrc file, close all environment variables, and then perform VNC restart in text mode.
3. After logging in again, setenv PATH / usr / bin: $ PATH
4, ibus-daemon -r -d -x
5. Click on the keyboard icon that pops up in the window, in Input Method → ​​Pinyin input method → ​​add → close, the Chinese is completed Pinyin input method settings.

4.
Make script is executed by / bin / sh.
make uses a separate subshell for each command to execute, so the execution of multiple lines of commands is independent of each other, and there is no dependency between each other.
Example: first open a directory duv, and then create a directory testcase
1, cd duv; mkdir testcase
2, cd duv && mkdir testcase The
above two usages can be completed;
3. cd duv
mkdir testcase
This directory testcase is established in the original directory Down, not in the duv directory.

Published 38 original articles · Like 29 · Visits 10,000+

Guess you like

Origin blog.csdn.net/weixin_45270982/article/details/105258621