In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "Fedora how to use commands to edit files", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "Fedora how to use commands to edit files" this article.
Typing vim filename on the command line creates a file called filename, which opens if it exists.
Vim [parameters] [file..] Edit the specified file vim [parameters]-read the text vim [parameters] from the standard input (stdin)-t tag edit the file vim [parameters]-Q [errorfile] at the tag definition
Parameters:
-- only file names after that-vVi mode (same as "vi")-eEx mode (same as "ex")-s quiet (batch) mode (only used with "ex")-dDiff mode (same as "vimdiff")-y easy mode (same as "evim") No mode)-R read-only mode (same as "view")-Z restricted mode (same as "rvim")-m cannot be modified (write to file)-M text cannot be modified-b binary mode-lLisp mode-C is compatible with traditional Vi: 'compatible'-N is not fully compatible with traditional Vi:' nocompatible'-V [N] [fname] Be verbose [level N] [log messages to] Fname]-D debug mode-n does not use swap files Only use memory-r to list swap files and exit-r (with filename) to resume crashed sessions-L same as-r-A starts in Arabic mode-H starts in Hebrew mode-F starts in Farsi mode-T sets terminal type to-u use alternative to any .vimrc-noplugin does not load plugin scripts-P [N] opens N tabs (default: One per file)-o [N] Open N windows (default: one per file)-O [N] same as-o but split vertically + jump to the end of file after startup + jump to line after startup-execute-c load * files before cmd load any vimrc files-execute-S load * files after execution-s slave files Commands for reading into normal mode-w appends all entered commands to the file-W writes all entered commands to the file-x edits encrypted files-startuptime Write startup timing messages to-I uses print help instead of .viminfo-h or-- help (this information) and exits-- version prints version information and exits
After entering vi, enter the content, * Click esc, then press the colon, and type wq to save and exit.
Create a new text file vi NewFilename
Edit an existing file vi Filename
To save an editor in vi, press Esc
Type: W filename (colons are required)
Linux does not distinguish between text and binary, nor does it need .txt
If you just want to create a file touch NewFilename
You can see the files appear in the directory.
Vi filename then press the I key to enter the editing state, press the exit key esc after editing, press and hold shift+Z twice, and then exit the save. If the file is not in it, the file will be created automatically.
After entering vi, enter the content, * Click esc, then press the colon, and type wq to save and exit.
Create a new text file vim NewFilename
Edit an existing file vim Filename
To save an editor in vi, press Esc
Type: W filename (colons are required)
Linux does not distinguish between text and binary, nor does it need .txt
If you just want to create a file touch NewFilename
You can see the files appear in the directory.
Vim filename then press the I key to enter the editing state, press the exit key esc after editing, press and hold shift+Z twice, so exit the save, if the file is not in it, automatically create the file.
The above is all the contents of the article "how to use Fedora commands to edit files". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.