当前位置:网站首页>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
边栏推荐
- Kyligence was selected into Gartner 2022 data management technology maturity curve report
- 基于JEECG制作一个通用的级联字典选择控件-DictCascadeUniversal
- [fluent -- example] case 1: comprehensive example of basic components and layout components
- Interviewer: "classmate, have you ever done a real landing project?"
- MySQL implements inserting data from one table into another table
- Maskgae: masked graph modeling meets graph autoencoders
- Docker学习 - Redis集群-3主3从-扩容-缩容搭建
- Want to go whoring in vain, right? Enough for you this time!
- Deployment of Apache website services and implementation of access control
- Lu MENGZHENG's "Fu of broken kiln"
猜你喜欢

【AI4Code】《Contrastive Code Representation Learning》 (EMNLP 2021)

Chapter5 : Deep Learning and Computational Chemistry

Shell常用脚本:获取网卡IP地址

Business visualization - make your flowchart'run'(3. Branch selection & cross language distributed operation node)

基于JEECG制作一个通用的级联字典选择控件-DictCascadeUniversal

Zero basic learning canoe panel (15) -- CAPL output view
![[rust] reference and borrowing, string slice type (& STR) - rust language foundation 12](/img/48/7a1777b735312f29d3a4016a14598c.png)
[rust] reference and borrowing, string slice type (& STR) - rust language foundation 12

485 communication (detailed explanation)

零基础学习CANoe Panel(12)—— 进度条(Progress Bar)

485通讯( 详解 )
随机推荐
Oran special series-21: major players (equipment manufacturers) and their respective attitudes and areas of expertise
[today in history] July 25: IBM obtained the first patent; Verizon acquires Yahoo; Amazon releases fire phone
Is the securities account opened by qiniu safe? How to open an account
Clickhouse notes 03-- grafana accesses Clickhouse
CONDA common commands: install, update, create, activate, close, view, uninstall, delete, clean, rename, change source, problem
迁移PaloAlto HA高可用防火墙到Panorama
The programmer's father made his own AI breast feeding detector to predict that the baby is hungry and not let the crying affect his wife's sleep
485 communication (detailed explanation)
零基础学习CANoe Panel(16)—— Clock Control/Panel Control/Start Stop Control/Tab Control
Word style and multi-level list setting skills (II)
How to use causal inference and experiments to drive user growth| July 28 tf67
零基础学习CANoe Panel(13)—— 滑条(TrackBar )
Shell Basics (exit control, input and output, etc.)
Kyligence was selected into Gartner 2022 data management technology maturity curve report
Leetcode 1184. distance between bus stops
【AI4Code】《CoSQA: 20,000+ Web Queries for Code Search and Question Answering》 ACL 2021
[problem solving] org.apache.ibatis.exceptions PersistenceException: Error building SqlSession. 1-byte word of UTF-8 sequence
Chapter5 : Deep Learning and Computational Chemistry
Mysql 远程连接权限错误1045问题
Requirements specification template
