How Do I Open a Text File in Ubuntu?
Contents

How do I open a TXT file in Ubuntu?

The easiest way to open a text file is to navigate to the directory it lives in using the “cd” command, and then type the name of the editor (in lowercase) followed by the name of the file.

How do I open a text file in terminal?

3 Answers. You can use xdg-open to open files in a terminal. The command xdg-open _b2rR6eU9jJ. txt will open the text file in a text editor that is set to handle text files.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest