当前位置:网站首页>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
边栏推荐
- [机器学习] 实验笔记 – 表情识别(emotion recognition)
- 微软提出CodeT:代码生成新SOTA,20个点的性能提升
- Ministry of Public Security: the international community generally believes that China is one of the safest countries in the world
- Azure Devops (XIV) use azure's private nuget warehouse
- Shell Basics (exit control, input and output, etc.)
- Cyberspace Security penetration attack and defense 9 (PKI)
- 7行代码让B站崩溃3小时,竟因“一个诡计多端的0”
- 跌荡的人生
- Requirements specification template
- Deployment of Apache website services and implementation of access control
猜你喜欢

Docekr学习 - MySQL8主从复制搭建部署

Atcoder beginer contest 261 f / / tree array

Moving Chinese figure liushenglan

Alibaba cloud technology expert Qin long: reliability assurance is a must - how to carry out chaos engineering on the cloud?

Zero basic learning canoe panel (14) -- led control and LCD control

Word style and multi-level list setting skills (II)

【问题解决】ibatis.binding.BindingException: Type interface xxDao is not known to the MapperRegistry.

【OpenCV 例程 300篇】239. Harris 角点检测之精确定位(cornerSubPix)

【AI4Code】《GraphCodeBERT: Pre-Training Code Representations With DataFlow》 ICLR 2021
What does the software testing process include? What are the test methods?
随机推荐
2022.07.24 (lc_6125_equal row and column pairs)
请问一下,使用数据集成从postgreSQL导数据到Mysql数据库,有部分数据的字段中出现emoj
Lu MENGZHENG's "Fu of broken kiln"
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
Go: Gin custom log output format
[operation and maintenance, implementation of high-quality products] interview skills for technical positions with a monthly salary of 10k+
ECCV 2022 | climb to the top semantickitti! Semantic segmentation of LIDAR point cloud based on two-dimensional prior assistance
基于JEECG制作一个通用的级联字典选择控件-DictCascadeUniversal
【OpenCV 例程 300篇】239. Harris 角点检测之精确定位(cornerSubPix)
【AI4Code】《InferCode: Self-Supervised Learning of Code Representations by Predicting Subtrees》ICSE‘21
Interviewer: "classmate, have you ever done a real landing project?"
LeetCode 1184. 公交站间的距离
交换机链路聚合详解【华为eNSP】
《富兰克林自传》修身
massCode 一款优秀的开源代码片段管理器
Zero basic learning canoe panel (13) -- trackbar
Leetcode 0133. clone diagram
How to understand metrics in keras
【C语言进阶】动态内存管理
MLX90640 红外热成像仪测温传感器模块开发笔记(五)
