To edit text files in Linux, you can use several terminal-based text editors:
1. Nano: A simple editor. Use nano filename.txt to open a file. Edit text, then press CTRL + X to exit and save changes.
2. Vim: A powerful editor. Use vim filename.txt to open a file. Press i to edit, then Esc to exit insert mode. Save and exit with :wq.
3. Emacs: Another advanced editor. Use emacs filename.txt to open a file. Save with CTRL + X then CTRL + S, and exit with CTRL + X then CTRL + C.
4. Sed: For quick text replacements, use sed -i ‘s/old-text/new-text/’ filename.txt.