当前位置:网站首页>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
边栏推荐
- Folio.ink 免费、快速、易用的图片分享工具
- Computer graduation design PHP animation information website
- Leetcode skimming questions_ Invert vowels in a string
- Computer graduation design PHP part-time recruitment management system for College Students
- Computer graduation design PHP enterprise staff training management system
- Format code_ What does formatting code mean
- Paddle framework: paddlenlp overview [propeller natural language processing development library]
- Reasonable and sensible
- TrueType字体文件提取关键信息
- Gbase 8C database upgrade error
猜你喜欢
A basic lintcode MySQL database problem
安装php-zbarcode扩展时报错,不知道有没有哪位大神帮我解决一下呀 php 环境用的7.3
Redis list
[technology development -28]: overview of information and communication network, new technology forms, high-quality development of information and communication industry
UE4 unreal engine, editor basic application, usage skills (IV)
Basic operations of databases and tables ----- unique constraints
leetcode3、實現 strStr()
Leetcode skimming questions_ Sum of squares
leetcode-两数之和
Force buckle 1020 Number of enclaves
随机推荐
Tensorflow customize the whole training process
02.Go语言开发环境配置
Extracting key information from TrueType font files
剑指 Offer 12. 矩阵中的路径
Numpy array index slice
Ali test Open face test
NiO related knowledge (II)
Cookie concept, basic use, principle, details and Chinese transmission
Paddle框架:PaddleNLP概述【飛槳自然語言處理開發庫】
500 lines of code to understand the principle of mecached cache client driver
Reasonable and sensible
Thinking about the best practice of dynamics 365 development collaboration
Mongodb problem set
Get the relevant information of ID card through PHP, get the zodiac, get the constellation, get the age, and get the gender
【网络攻防实训习题】
Internship: unfamiliar annotations involved in the project code and their functions
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
ClickOnce does not support request execution level 'requireAdministrator'
How to get all sequences in Oracle database- How can I get all sequences in an Oracle database?
National intangible cultural heritage inheritor HD Wang's shadow digital collection of "Four Beauties" made an amazing debut!