Return to site

How To Create And Save A File

broken image


Create

How to create an audio file. To create an audio file, we suggest using the free Audacity program. How to save a file after it is created. After a file is created, you can use the programs save feature to save the file to your hard drive or other media. Start by clicking the Save icon. Or, go to File Save. Select the Save option from to drop-down menu to save your file. Alternatively, go to File Save As to make a copy of the file.

It is true that learning Vi/Vim – a well-known text editor in the Linux ecosystem, is not as easy as learning Nano or Emacs, as it requires a little effort which is worthwhile.

Many people are afraid of learning it, but seriously, for no important reasons. In this short article, intended for Vi/Vim text editor newbies, we'll learn a few basic commands; how to save a file after writing or modifying its content.

Suggested Read:10 Reasons Why You Should Use Vi/Vim Text Editor in Linux

In most of the today's Linux distributions, Vi/Vim editor comes with pre-installed, if not install the full version of Vim (Debian systems provide vim-tiny with less features), simply run this command:

Note: To use it's latest features, install Vim 8.0.

To open or create a file using Vim, run the following command, then press i to insert text into it (insert mode):

Once you have modified a file, press [Esc] shift to the command mode and press :w and hit [Enter] as shown below.

How To Create New Files On Windows

To save the file and exit at the same time, you can use the ESC and :x key and hit [Enter]. Optionally, press [Esc] and type Shift + Z Z to save and exit the file.

To save the file content to a new file named newname, use :w newname or :x newname and hit [Enter].

How To Save Computer Files

From here, you can now move over to learn common Vi/Vim tips and tricks, understand the different modes and so much more:

How To Create A File In Windows

That's it! In an upcoming article, we'll show you how to exit Vim text editor with simple commands. Remember to drop your comments via the feedback form below.





broken image