1 | Current Level: 2 | 3 | 4 | 5 | 6 | 7
First, change into the thesis folder where you want to create your file:
cd thesis
This will be the folder where your new file is saved by default.
Use the nano command to open a new file called draft.txt:
nano draft.txt
Type a few lines of text. Example:
It's not publish or perish any more,
it's share and thrive.
Save your file:
Ctrl + O and then Enter to confirm the file name.Ctrl + X to exit the editor.Check that your file was created:
ls
You should see draft.txt listed.
nano is a simple, beginner-friendly text editor.Other popular editors:
vim, emacs (powerful, but require more learning)gedit, VS Code (graphical editors on Unix systems)notepad, Notepad++ (text editors on Windows)This lesson helps you get comfortable editing plain text files from the command line — a key skill for scripting, logging, and version control workflows.