当前位置:网站首页>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
边栏推荐
- 《富兰克林自传》修身
- Interviewer: "classmate, have you ever done a real landing project?"
- 【运维、实施精品】月薪10k+的技术岗位面试技巧
- Cyberspace Security penetration attack and defense 9 (PKI)
- Want to go whoring in vain, right? Enough for you this time!
- 【OpenCV 例程 300篇】239. Harris 角点检测之精确定位(cornerSubPix)
- ORAN专题系列-21:主要的玩家(设备商)以及他们各自的态度、擅长领域
- 迁移PaloAlto HA高可用防火墙到Panorama
- 【AI4Code】《CodeBERT: A Pre-Trained Model for Programming and Natural Languages》 EMNLP 2020
- 2022 年中回顾 | 大模型技术最新进展 澜舟科技
猜你喜欢
![[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+

如何理解Keras中的指标Metrics
![[shutter -- layout] stacked layout (stack and positioned)](/img/01/c588f75313580063cf32cc01677600.jpg)
[shutter -- layout] stacked layout (stack and positioned)
软件测试流程包括哪些内容?测试方法有哪些?

How to understand metrics in keras
![SSTI template injection vulnerability summary [bjdctf2020]cookie is so stable](/img/19/0b943019fe1c959c4b79035a814410.png)
SSTI template injection vulnerability summary [bjdctf2020]cookie is so stable

web安全入门-UDP测试与防御

程序员奶爸自制AI喂奶检测仪,预判宝宝饿点,不让哭声影响老婆睡眠

感动中国人物刘盛兰

“蔚来杯“2022牛客暑期多校训练营2 补题题解(G、J、K、L)
随机推荐
Selenium use -- installation and testing
[300 opencv routines] 239. accurate positioning of Harris corner detection (cornersubpix)
State mode
perf 性能调试
Deployment of Apache website services and implementation of access control
conda常用命令:安装,更新,创建,激活,关闭,查看,卸载,删除,清理,重命名,换源,问题
go : gin 自定义日志输出格式
Cyberspace Security penetration attack and defense 9 (PKI)
【Rust】引用和借用,字符串切片 (slice) 类型 (&str)——Rust语言基础12
clickhouse笔记03-- Grafana 接入ClickHouse
2022 年中回顾 | 大模型技术最新进展 澜舟科技
需求规格说明书模板
"Autobiography of Franklin" cultivation
Emqx cloud update: more parameters are added to log analysis, which makes monitoring, operation and maintenance easier
【AI4Code】《Contrastive Code Representation Learning》 (EMNLP 2021)
[high concurrency] deeply analyze the execution process of worker threads in the thread pool through the source code
[rust] reference and borrowing, string slice type (& STR) - rust language foundation 12
I want to ask whether DMS has the function of regularly backing up a database?
AtCoder Beginner Contest 261 F // 树状数组
JS convert pseudo array to array
