Home
Mobile
Internet
Server
Language
Enterprise
Database
News
Others
Search
vim in linux, delete all contents in the current file
Language
2023-12-17 17:28:15
views: null
Step 1: Open the file you want to delete
vi
需要删除的文件
In the second step, after entering the file, use shift+g to enter the last line
Step 3: Press esc and then use
:1,.d
to delete all content
第二种方式:进入文件后直接输入100dd,可以删除100行的数据,应该
Guess you like
Origin
blog.csdn.net/yyuggjggg/article/details/122307741
vim in linux, delete all contents in the current file
vim clears all contents of the file
linux command: find + rm to delete the current specified file directory and all subdirectories
All contents of the file linux common commands search folder
Linux changes the contents of a file and subdirectory to be readable, writable and executable by all users
Delete the file contents using sed
Importing data to local or import data into hdfs, we first have to delete the original data, or delete all the original data file folder contents
Linux: view the file contents
Linux Find File Contents
Linux Centos delete all files except a certain file(s)
linux- delete all files in a directory, but retain some or more of the specified file Linux: delete all the files in a directory, but retain a specified file
How to delete the file Chinese Python contents of this document?
sed command_Linux sed command: replace, delete, update the contents of the file
vue reads all files and file contents in a folder
vim- select all, delete, copy
Linux view the contents of the file command
How to Find File Contents in Linux
How to Find File Contents in Linux
linux command to view the contents of a file
How to view file contents in linux
Quickly delete a folder and its contents in linux
The existence of the specified file Linux look for character / string search the current directory in vim under
OracleDB entry 4: delete all the contents of the specified schema
Linux file editor of Vim
Python gets all file names in the current folder
linux delete all files in the folder
java delete the contents of the xml file outside of angle brackets
[linux] Write a .sh file so that all files under the folder have the ownership of the current user, and the user group, and assign file permissions
windows batch delete the current directory and all subdirectories empty folders
How to delete all unused imports from current project in Intellij Idea
Recommended
Linus is the most active in "eating dog food"!
Ranking
Share good programmer web front-end array and sorting, de-duplication and random roll call
Compilation error caused by cv_bridge and python version problems error: return-statement with no value, in function returning'void*' [-fpe
魔众帮助中心系统 v3.1.0 首页切换器,界面优化
Die beim Millimeterwellenradar-Integrationstest aufgetretene Grube (Multiprozessbindung an einen UDP-Port verursacht Probleme)
How to suppress the "requires transitive directive for an automatic module" warning properly?
LeetCode-1743. Restore the Array From Adjacent Pairs-Analysis and Code (Java)
Summer 2019 Summer soft essay 7 workers
Python中Assert断言的使用语法和例子
LeetCode one question per day (2021-2-3 sliding window median)
Fairchild, the ancestor of semiconductors, the legend of the first trillion-dollar start-up
Daily
More
2024-05-20(5)
2024-05-19(0)
2024-05-18(31)
2024-05-17(6)
2024-05-16(23)
2024-05-15(5)
2024-05-14(9)
2024-05-13(8)
2024-05-12(28)
2024-05-11(32)