- If you would like to create a new file called myfile.txt you would need to type the following command:
- touch myfile.txt
- In order to edit the newly created file, you should use a file editor. The most commonly used are vim and pico (aka nano). To request the file to be opened in nano, type:
- nano myfile.txt
- To create a new directory, you can use:
- mkdir myDirectory