Using nano
GNU nano is a small and friendly text editor. Besides basic text editing, nano offers many extra features, such as an interactive search-and-replace, undo/redo, syntax coloring, smooth scrolling, auto-indentation, go-to-line-and-column-number, feature toggles, file locking, backup files, and internationalization support.
- For editing a file, you should run nano as follows:
name@hostname ~ $ nano my_file.py
- Once your file is opened, you are ready to go and edit the lines you need to.
- When you're ready to save the changes and exit the file, you must hit Ctrl + X, then Y and finally [ENTER]