当前位置:网站首页>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
边栏推荐
- [机缘参悟-39]:鬼谷子-第五飞箝篇 - 警示之二:赞美的六种类型,谨防享受赞美快感如同鱼儿享受诱饵。
- Basic operations of database and table ----- delete data table
- Comments on flowable source code (XXXV) timer activation process definition processor, process instance migration job processor
- Redis string type
- TrueType字体文件提取关键信息
- It's wrong to install PHP zbarcode extension. I don't know if any God can help me solve it. 7.3 for PHP environment
- Dynamics 365 开发协作最佳实践思考
- Unity learning notes -- 2D one-way platform production method
- 阿里测开面试题
- Open source | Ctrip ticket BDD UI testing framework flybirds
猜你喜欢
国家级非遗传承人高清旺《四大美人》皮影数字藏品惊艳亮相!
Leetcode skimming questions_ Sum of squares
Basic operations of database and table ----- set the fields of the table to be automatically added
Blue Bridge Cup embedded_ STM32 learning_ Key_ Explain in detail
Leetcode skimming questions_ Verify palindrome string II
Kubernetes stateless application expansion and contraction capacity
leetcode3、實現 strStr()
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
How to upgrade kubernetes in place
插卡4G工业路由器充电桩智能柜专网视频监控4G转以太网转WiFi有线网速测试 软硬件定制
随机推荐
leetcode-2. Palindrome judgment
Regular expressions: examples (1)
[network attack and defense training exercises]
Basic operations of database and table ----- set the fields of the table to be automatically added
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
MCU lightweight system core
Social networking website for college students based on computer graduation design PHP
This time, thoroughly understand the deep copy
Unreal browser plug-in
TrueType字体文件提取关键信息
竞价推广流程
Folio.ink 免费、快速、易用的图片分享工具
You are using pip version 21.1.1; however, version 22.0.3 is available. You should consider upgradin
Extracting key information from TrueType font files
01.Go语言介绍
It's wrong to install PHP zbarcode extension. I don't know if any God can help me solve it. 7.3 for PHP environment
Competition question 2022-6-26
[flask] response, session and message flashing
3D视觉——4.手势识别(Gesture Recognition)入门——使用MediaPipe含单帧(Singel Frame)和实时视频(Real-Time Video)
Blue Bridge Cup embedded_ STM32 learning_ Key_ Explain in detail