Create new file ubuntu 18.04 nano

To create a new file using the nano editor in Ubuntu 18.04, you can follow these steps:

  1. Open the terminal: You can do this by searching for "Terminal" in the Dash or by using the keyboard shortcut Ctrl + Alt + T.
  2. Type the command: nano <filename> (replace <filename> with the name you want to give your new file). For example, if you want to create a file called "example.txt", you would type nano example.txt.
  3. Press Enter: This will open the nano editor with a blank file.
  4. Start typing: You can now start typing your content into the file.
  5. Save and exit: When you're finished, you can save the file by pressing Ctrl + X, then Y, then Enter.

Here's an example of what the command might look like:

$ nano example.txt

This will open the nano editor with a blank file. You can then start typing your content into the file.

Note: If you want to create a new file in a specific directory, you can specify the directory path along with the filename. For example:

$ nano /path/to/directory/example.txt

This will create a new file called "example.txt" in the specified directory.