Home > OS >  Linux virtual machine how to edit the file content
Linux virtual machine how to edit the file content

Time:10-10

I use the touch command zoo built a file. The file, now I want to input data in this file, with what command?

CodePudding user response:

There are a lot of ways,
Echo this method, basically to enter some simple content,
 echo "XXXX" & gt; Zoo. CFG 

Additional input
 echo "XXXX" & gt;> Zoo. CFG 


With vi/vim editor
 vim zoo. CFG 


If there is one interface, using the sublime does/vscode etc tool,

CodePudding user response:

New
Vim zoo. CFG
In according to the I
Then the optional editor
Press ESC, then enter
: wq
  • Related