Open-The-File.com

Trusted file extension guides and opening help from the original project since 2008.

How to open .TXT files on Linux

To open .TXT files on Linux, open with gedit, kate, nano, or vim..

Step-by-step instructions

  1. Open with gedit, Kate, nano, or vim.
  2. Use less/cat in terminal for quick review.

Recommended software

  • Microsoft 365
  • LibreOffice
  • Google Docs (web)

Alternative methods

  • Open .TXT in a browser-based viewer if desktop apps fail.
  • Try opening .TXT on Linux with a secondary app to rule out app-specific issues.
  • Convert .TXT only with trusted tools when direct opening is not possible.

Common issues

Unreadable characters

Encoding mismatch can produce garbled text.

  1. Try opening with UTF-8, UTF-16, and Windows-1252 encodings.
  2. Ask sender which encoding was used.
  3. Re-save as UTF-8 once text displays correctly.

Security note

Text files are generally low risk, but links or commands inside may still be dangerous.

Back to .TXT extension page