Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-31-2006, 11:03 AM   #1
Registered: Feb 2005
Location: Kuala Lumpur, Malaysia
Distribution: Fedora Core 5
Posts: 121

Rep: Reputation: 15
Open .txt file using OpenOffice through terminal

I've created a .txt file using touch johan.txt.
When I run cat johan.txt through terminal, it display the file contents in the terminal.

Is there a command that when I type in the terminal, it will display the contents of the file using OpenOffice or KWord or any text editor?
Old 05-31-2006, 11:15 AM   #2
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Well CLI editors will be as simple as
<editor> file
GUI ones you may be able to get away with the same.

I take it you dont want to have to open the file from inside the program?
Old 05-31-2006, 11:15 AM   #3
Senior Member
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 46
just type the command followed by the file name, e.g., kate johan.txt, gedit johan.txt, etc.
Old 05-31-2006, 11:18 AM   #4
Registered: Nov 2005
Posts: 144

Rep: Reputation: 18
You can open it with openoffice (ooffice johan.txt), which will open a separate Open Office Window.

If you want to use a terminal program, you should use vim (type: vi johan.txt) or nano (nano johan.txt). Vim is a very powerful editor, but it takes some time to get used to it. You should definitely google for a quick tutorial if you wnat to use vim. Nano is similar to DOS' edit, and quite intuitively to use


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Txt extension file translation UltraSoul Solaris / OpenSolaris 3 05-21-2005 11:11 AM
Reading a txt file in terminal over a network mdlister Programming 5 03-14-2005 07:47 AM
openoffice writer file won't open knowerrors Linux - Software 7 01-03-2005 05:19 AM
c++ writing to a .txt file xemous Programming 8 09-01-2004 10:57 PM
How to convert a txt file to be a db file in Redhat linux 9? winnie Linux - Newbie 3 06-27-2003 08:33 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration