How to use vim in Linux to create a file in a specific directory

In Linux, you can use the following command to create a file using vim in a specific directory:

  1. Open the terminal.
  2. Change the directory.
  3. change directory to /path/to/directory
  4. Edit the file named “filename” using vim.
  5. name of the file
  6. just can’t get enough of this beautiful scenery.
  7. Esc = Stop
  8. save and exit

Now you have successfully created a new file using vim in the specified directory.

Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds