当前位置:网站首页>Text editing VIM operation, file upload
Text editing VIM operation, file upload
2022-07-06 01:55:00 【-Joucy-】
Text editing vim operation 、 Upload files
One 、 Text editing vi
vi/vim, A console based text editor
gedit, One is based on GUI Text editor for
among ,vim yes vi Upgraded version
- Open the text editor
vim abc.txt
If the destination file exists , Open edit ; If it doesn't exist , A new file will be created
If the system does not have vim, Just install it :
sudo apt install vim - Switch mode
Edit mode Insert Mode: Press i key
Command mode Command Mode: Press ESC key - Exit the editor
(1) Press ESC key , Get into Command mode
(2) Input :wq Save and exit
Input :q sign out
Input :q Forced exit ( Give up saving )
Two 、vim More operations
- Linux Text editor
1、 Desktop Environment :gedit
2、 Terminal environment :
- A few changes :vim
- A lot of modifications : stay Windows Go to the editor , And then upload it to Linux
3、 ... and 、 Upload of text file
have access to notepad++ Or other professional editors
Line breaks in text files
Windows:\r\n
Linux:\nCan be in Notepad++ This difference is observed in
Try | Display symbols | Show end of lineLine feed conversion : edit | Document format conversion | Convert to UNIX Format
Be careful : Only in editing SHELL Script when , You need to switch
Files in other formats generally do not need to be converted , Enter into *.xml,*.javaSHELL Script editing
1、 use Notepad++ Open editor
2、 Turn into Unix Format
3、 Uploaded to the Linux
4、chmod +x
边栏推荐
- Cookie concept, basic use, principle, details and Chinese transmission
- 剑指 Offer 38. 字符串的排列
- A Cooperative Approach to Particle Swarm Optimization
- 2022年PMP项目管理考试敏捷知识点(8)
- How to get all sequences in Oracle database- How can I get all sequences in an Oracle database?
- 【SSRF-01】服务器端请求伪造漏洞原理及利用实例
- Executing two identical SQL statements in the same sqlsession will result in different total numbers
- 晶振是如何起振的?
- A Cooperative Approach to Particle Swarm Optimization
- Alibaba-Canal使用详解(排坑版)_MySQL与ES数据同步
猜你喜欢

Campus second-hand transaction based on wechat applet

Basic operations of databases and tables ----- unique constraints

Poj2315 football games

Card 4G industrial router charging pile intelligent cabinet private network video monitoring 4G to Ethernet to WiFi wired network speed test software and hardware customization

Leetcode skimming questions_ Sum of squares

Redis-列表

Alibaba-Canal使用详解(排坑版)_MySQL与ES数据同步

Basic operations of databases and tables ----- primary key constraints

Computer graduation design PHP campus restaurant online ordering system
![Grabbing and sorting out external articles -- status bar [4]](/img/1e/2d44f36339ac796618cd571aca5556.png)
Grabbing and sorting out external articles -- status bar [4]
随机推荐
【Flask】官方教程(Tutorial)-part2:蓝图-视图、模板、静态文件
竞价推广流程
【详细】快速实现对象映射的几种方式
D22:indeterminate equation (indefinite equation, translation + problem solution)
UE4 unreal engine, editor basic application, usage skills (IV)
Regular expressions: examples (1)
How does redis implement multiple zones?
Selenium waiting mode
Alibaba-Canal使用详解(排坑版)_MySQL与ES数据同步
Selenium element positioning (2)
Install redis
01. Go language introduction
01.Go语言介绍
Thinking about the best practice of dynamics 365 development collaboration
Folio.ink 免费、快速、易用的图片分享工具
leetcode刷题_平方数之和
ClickOnce 不支持请求执行级别“requireAdministrator”
[the most complete in the whole network] |mysql explain full interpretation
Basic operations of database and table ----- delete data table
02. Go language development environment configuration