27 lines
1.5 KiB
Markdown
27 lines
1.5 KiB
Markdown
#
|
|
|
|
1. **Opening and Creating Files**:
|
|
- To open an existing file or create a new one, type:
|
|
```
|
|
nano filename
|
|
```
|
|
- Replace `filename` with the actual name of the file you want to edit. Nano will open the file in a new editor window.
|
|
|
|
2. **Basic Editing**:
|
|
- Nano is modeless, meaning you can start typing and editing immediately.
|
|
- To move the cursor to a specific line and character number, use `Ctrl+_`. Enter the line and column numbers when prompted.
|
|
- To save your changes and exit, press `Ctrl+x`.
|
|
|
|
3. **Searching and Replacing**:
|
|
- To search for text, press `Ctrl+w`, type your search term, and press `Enter`.
|
|
- To move to the next match, press `Alt+w`.
|
|
- For search and replace, press `Ctrl+\`. Enter the search term and the replacement text.
|
|
|
|
|
|
|
|
- [(1) Editing Files With Nano in Linux [With Cheat Sheet] - It's FOSS.](https://itsfoss.com/nano-editor-guide/.)
|
|
- [(2) The Beginner's Guide to Nano, the Linux Command-Line Text Editor.](https://www.howtogeek.com/42980/the-beginners-guide-to-nano-the-linux-command-line-text-editor/.)
|
|
- [(3) nano Command Guide | Linux Text Editor Explained.](https://ioflood.com/blog/nano-linux-command/.)
|
|
- [(4) Getting Started With Nano Editor - Linux Handbook.](https://linuxhandbook.com/nano/.)
|
|
- [(5) First steps with the Nano text editor - PragmaticLinux.](https://www.pragmaticlinux.com/2020/05/first-steps-with-the-nano-text-editor/.)
|
|
- [(6) How to Use Nano Text Editor: From Installation to Editing - Hostinger.](https://www.hostinger.com/tutorials/how-to-install-and-use-nano-text-editor.) |