当前位置:网站首页>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
边栏推荐
- Reasonable and sensible
- [flask] official tutorial -part2: Blueprint - view, template, static file
- Ali test open-ended questions
- [flask] official tutorial -part3: blog blueprint, project installability
- UE4 unreal engine, editor basic application, usage skills (IV)
- 【SSRF-01】服务器端请求伪造漏洞原理及利用实例
- How does redis implement multiple zones?
- [detailed] several ways to quickly realize object mapping
- Internship: unfamiliar annotations involved in the project code and their functions
- Redis如何实现多可用区?
猜你喜欢
Redis string type
Maya hollowed out modeling
How does the crystal oscillator vibrate?
[understanding of opportunity-39]: Guiguzi - Chapter 5 flying clamp - warning 2: there are six types of praise. Be careful to enjoy praise as fish enjoy bait.
[技术发展-28]:信息通信网大全、新的技术形态、信息通信行业高质量发展概览
You are using pip version 21.1.1; however, version 22.0.3 is available. You should consider upgradin
Redis list
Basic operations of database and table ----- delete data table
NLP第四范式:Prompt概述【Pre-train,Prompt(提示),Predict】【刘鹏飞】
抓包整理外篇——————状态栏[ 四]
随机推荐
Competition question 2022-6-26
GBase 8c数据库升级报错
C web page open WinForm exe
Redis-Key的操作
Cookie concept, basic use, principle, details and Chinese transmission
ClickOnce does not support request execution level 'requireAdministrator'
Dynamics 365 开发协作最佳实践思考
Apicloud openframe realizes the transfer and return of parameters to the previous page - basic improvement
2022年PMP项目管理考试敏捷知识点(8)
Redis key operation
How to get all sequences in Oracle database- How can I get all sequences in an Oracle database?
Basic operations of databases and tables ----- primary key constraints
Publish your own toolkit notes using NPM
A basic lintcode MySQL database problem
【网络攻防实训习题】
01.Go语言介绍
抓包整理外篇——————状态栏[ 四]
Redis-字符串类型
genius-storage使用文档,一个浏览器缓存工具
XSS learning XSS lab problem solution