当前位置:网站首页>Common operations for Yum and VIM
Common operations for Yum and VIM
2022-07-25 13:01:00 【I run】
Catalog
Conditions for us to install other people's software :
Text batch operation in command mode
1.yum-- Package manager
yum stay Linux The main function of is software management : Install the uninstall . In my use centos 7 in , It's not just yum install , There are also source code installation and rpm Package installation .
Source code installation : It needs to be compiled by users themselves , so much trouble
rpm Package installation : What is installed is what , Many of these plug-ins also need to be found by yourself , It's a lot of trouble
Only yum Installation is the most simple and convenient , In this note yum Subject to .
yum uninstall
yum remove Package name With sl Command as an example , function sl :

I've installed sl 了 , Show me how to uninstall first :

yum install
yum install Package name install sl Command as an example :

Conditions for us to install other people's software :
We need someone else to compile the code into an executable program first ;
And put the compiled software where we can download it .
On mobile phone :
It's like us mobile phone Upper Application market , You can search the corresponding software , Download the corresponding software , The application market will access the corresponding Company servers , Provide users with download function
stay Linux On :
We are users , It's using Linux machine , Equivalent to a mobile phone ,yum Equivalent to the application market , One more Linux The server , Provide download function
Check out the package
adopt yum list The command can list which software packages are currently available . The number of packages is very large :
For easy search , We usually need to use grep The command only filters out the packages we focus on :
yum list | grep Package name
install lrzsz
yum install lrzszlrzsz Can be windows Drag the file under to Linux Next , You can also use rz command , Make a selection :
2.vim Use
First let's install vim,-y Is to skip asking , Direct installation
yum install -y vimvim It's an editor , Can only be used to write code , The reason for using it is that it is a multimodal editor , Powerful , Now let's take a look at the basic operations commonly used .
Get into / sign out vim
Editor , There must be editing objects , Create a .c file , The entry operation is as follows :

If you quit Press shift + : Enter bottom line mode , You can enter the command at the bottom , Input q that will do :

Mode switch
Get into The text defaults to command mode , Cannot write text in it , Now we can Press i key , Enter insertion mode , Do text editing :


In each mode, there will be corresponding letters in the lower left corner , As shown in the figure above .

If you enter the bottom line mode , I want to return to the command mode , According to the same esc Press the key ; Bottom line mode and insert mode cannot be switched directly , Must go through command mode .

Text batch operation in command mode
Copy and paste
y Press two times. --yy, Can copy this line
Numbers +yy Copy many lines
p It's paste , By default, it is pasted on the next line of the cursor
Numbers +p Is how many lines to paste
dd It's shearing Numbers +dd Cut multiple rows
u Is to undo the operation just now
ctrl + r Yes u Operation to undo
Positioning operation
vim Sliding is not supported , Under large text :
shift+g : Position the cursor at the end of the text
gg Position the cursor at the beginning of the text
Numbers +shift+g: Position the cursor on the specified line
shift+4: Position the cursor at the end of the line
shift+6: The cursor is positioned at the beginning of the line
w and b: Move the cursor forward and backward with words
h、j、k、l : Move left 、 Move down 、 Move upward 、 Move right
Replace operation
shift+ ~:(esc below ) Case substitution
r : Replace the character where the cursor is 、 Numbers +r: Replace multiple characters
shift+r: Batch replacement ( Override operation )
x: Delete the character at the cursor position 、 Numbers +x: Batch deletion
边栏推荐
- 程序的内存布局
- Seven lines of code made station B crash for three hours, but "a scheming 0"
- Chapter5 : Deep Learning and Computational Chemistry
- R language uses wilcox The test function performs Wilcox signed rank test to obtain the confidence interval of the population median (the default output result includes the confidence interval of 95%
- MySQL implements inserting data from one table into another table
- Detailed explanation of switch link aggregation [Huawei ENSP]
- 如何理解Keras中的指标Metrics
- 感动中国人物刘盛兰
- 艰辛的旅程
- Experimental reproduction of image classification (reasoning only) based on caffe resnet-50 network
猜你喜欢

Cyberspace Security penetration attack and defense 9 (PKI)

Selenium use -- installation and testing
![[operation and maintenance, implementation of high-quality products] interview skills for technical positions with a monthly salary of 10k+](/img/d8/90116f967ef0f5920848eca1f55cdc.png)
[operation and maintenance, implementation of high-quality products] interview skills for technical positions with a monthly salary of 10k+

MLX90640 红外热成像仪测温传感器模块开发笔记(五)

Chapter5 : Deep Learning and Computational Chemistry

如何用因果推断和实验驱动用户增长? | 7月28日TF67

yum和vim须掌握的常用操作

B tree and b+ tree
What does the software testing process include? What are the test methods?

Clickhouse notes 03-- grafana accesses Clickhouse
随机推荐
The world is exploding, and the Google server has collapsed
485 communication (detailed explanation)
[300 opencv routines] 239. accurate positioning of Harris corner detection (cornersubpix)
程序员奶爸自制AI喂奶检测仪,预判宝宝饿点,不让哭声影响老婆睡眠
B树和B+树
I register the absolutely deleted data in the source sqlserver, send it to maxcomputer, and write the absolute data when cleaning the data
Want to go whoring in vain, right? Enough for you this time!
Experimental reproduction of image classification (reasoning only) based on caffe resnet-50 network
Force deduction 83 biweekly T4 6131. The shortest dice sequence impossible to get, 303 weeks T4 6127. The number of high-quality pairs
What is ci/cd?
Microsoft proposed CodeT: a new SOTA for code generation, with 20 points of performance improvement
【问题解决】ibatis.binding.BindingException: Type interface xxDao is not known to the MapperRegistry.
Business visualization - make your flowchart'run'(3. Branch selection & cross language distributed operation node)
Chapter5 : Deep Learning and Computational Chemistry
零基础学习CANoe Panel(14)——二极管( LED Control )和液晶屏(LCD Control)
Zero basic learning canoe panel (15) -- CAPL output view
[problem solving] org.apache.ibatis.exceptions PersistenceException: Error building SqlSession. 1-byte word of UTF-8 sequence
【运维、实施精品】月薪10k+的技术岗位面试技巧
If you want to do a good job in software testing, you can first understand ast, SCA and penetration testing
Alibaba cloud technology expert Qin long: reliability assurance is a must - how to carry out chaos engineering on the cloud?
