Help with opening/viewing doc file via linux terminal


 
Thread Tools Search this Thread
Top Forums Web Development Help with opening/viewing doc file via linux terminal
# 1  
Old 11-30-2011
Bug Help with opening/viewing doc file via linux terminal

I am currently trying to open a .doc file in my workstation via terminal. This is my code:
root@ojt:/home/ojt/Desktop# cat arts_life.doc

and it gave me a bunch of unknown characters together with the contents of the doc file. What I actually want to happen is that it will open the actual file in its designated software, say for the arts_life.doc, I would like to open it in the OpenOffice.org Word Processor.

I am a totally newbie in Linux and would like to explore in it. I'm also doing some researches here Smilie but I will highly appreciate some help Smilie Thanks guys. Godspeed.

# 2  
Old 12-01-2011
If you have more than just a term, you may try open office for linux

OpenOffice.org - The Free and Open Productivity Suite
This User Gave Thanks to Astrocloud For This Post:
# 3  
Old 12-01-2011
Quote:
Originally Posted by chams
[SIZE=2]I am currently trying to open a .doc file in my workstation via terminal. This is my code:
root@ojt:/home/ojt/Desktop# cat arts_life.doc

and it gave me a bunch of unknown characters together with the contents of the doc file. What I actually want to happen is that it will open the actual file in its designated software, say for the arts_life.doc, I would like to open it in the OpenOffice.org Word Processor.
ooffice arts_life.doc

You certainly don't need sudo to run it like you did in your other thread! That's dangerous!
This User Gave Thanks to Corona688 For This Post:
# 4  
Old 12-01-2011
Quote:
Originally Posted by Corona688
ooffice arts_life.doc

You certainly don't need sudo to run it like you did in your other thread! That's dangerous!
Thanks. Yes I have done that. And it worked like magic. By the way, I don't understand why using sudo is dangerous (really, I'm a Linux dummy Smilie ). I might do some research first.
# 5  
Old 12-06-2011
Quote:
Originally Posted by chams
By the way, I don't understand why using sudo is dangerous (really, I'm a Linux dummy Smilie )
It runs openoffice as administrator. This is a big deal.

User accounts don't just organize your files, they exist to protect each other from unauthorized or accidental access. They can only access files they own or are allowed to access. Now, administrator can access anything on demand, up to and including your hard drive's boot sector, just by writing to the wrong files! Running any program as root means that, if you make a mistake, the consequences could be dire:
Code:
# "creative uses of rm", http://kluter.home.xs4all.nl/funnies/Section1.html

From: tzs@stein.u.washington.edu (Tim Smith)
Organization: University of Washington, Seattle

I was working on a line printer spooler, which lived in /etc.  I wanted
to remove it, and so issued the command "rm /etc/lpspl."  There was only
one problem.  Out of habit, I typed "passwd" after "/etc/" and removed
the password file.  Oops.

I called up the person who handled backups, and he restored the password
file.

A couple of days later, I did it again!  This time, after he restored it,
he made a link, /etc/safe_from_tim.

About a week later, I overwrote /etc/passwd, rather than removing it.

After he restored it again, he installed a daemon that kept a copy of
/etc/passwd, on another file system, and automatically restored it if
it appeared to have been damaged.

Fortunately, I finished my work on /etc/lpspl around this time, so we
didn't have to see if I could find a way to wipe out a couple of
filesystems...

It's not just humans that make mistakes either, buggy programs crash too, especially big complicated ones. If you don't need to trust something with root, you just don't. Running openoffice as root isn't something I'd reccomend at all.

Last edited by Corona688; 12-06-2011 at 03:00 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Print Terminal Output Exactly how it Appears in the Terminal to a New Text File

Hello All, I have a text file containing output from a command that contains lots of escape/control characters that when viewed using vi or view, looks like jibberish. But when viewed using the cat command the output is formatted properly. Is there any way to take the output from the cat... (7 Replies)
Discussion started by: mrm5102
7 Replies

2. UNIX and Linux Applications

Groups are disappearing on opening of new konsole/terminal

Hi when I open a new KDE/terminal all my project groups are disappearing. help is much appreciated. Thanks Sujay (2 Replies)
Discussion started by: sujaybatni
2 Replies

3. Shell Programming and Scripting

Can I view doc files from terminal

Sometimes I'm working from terminal for long periods of time and I come across a doc file I don't recognize. I've been trying to figure out how to view it instead of opening up word. I've tried cat but it jumps into binary and my terminal goes nuts. Is there a way I can do this from... (4 Replies)
Discussion started by: syregnar86
4 Replies

4. UNIX for Dummies Questions & Answers

Help with opening/viewing doc file via linux terminal

I am currently trying to open a .doc file in my workstation via terminal. This is my code: root@ojt:/home/ojt/Desktop# cat arts_life.doc and it gave me a bunch of unknown characters together with the contents of the doc file. What I actually want to happen is that it will open the... (2 Replies)
Discussion started by: chams
2 Replies

5. UNIX for Dummies Questions & Answers

Opening a terminal with bash

Hi, The computer that I use is on a network and has the exact same installation as other computers on the network (Ubuntu 10.04 LTS). When I open a new terminal window by default it opens a tcsh shell. I don't have the root privilege to modify it. Is it possible to open a terminal window that... (8 Replies)
Discussion started by: gaurab
8 Replies

6. Linux

Opening a GUI from a putty window on Linux

Hi, I have a linux which I am accessing using putty.I have written some code in TCL-Tk & developed a GUI based app.I knew that it is difficult to open a GUI based app. from putty,but there must be some way to do that. If anybody knows any such workarounds kindly let me know. Shell I am using is... (4 Replies)
Discussion started by: forstudy3
4 Replies

7. IP Networking

start a new terminal from a script after opening VPN

Hi all, I am trying to write a script that launch the cisco vpn client from the command line and then connects to a remote host using ssh. When i connect to the cisco vpn using vpnclient client connect the last lines of output from that client is Encryption: 168-bit 3-DES Authentication:... (0 Replies)
Discussion started by: borderblaster
0 Replies

8. Linux

Opening a TXT file in LINUX / UNIX

Hey Friends, When I open (More <filename>) a big txt file in UNIX /LINUX it asks me to press any key to see remaining file. Can I see it in a stretch? I mean I jst want to let the contains of file scroll up completely. Is there any way out? Plz help. Thanx in advance Anushree. (2 Replies)
Discussion started by: anushree.a
2 Replies

9. UNIX for Dummies Questions & Answers

Opening a file from the terminal

Hi, this is such a simple question (I think), but I don't know the answer, obviously. If I'm using the terminal, and I'm remotely logged on to another computer, and I'm in my directory on that computer, what command would I use to...open a file? For example, a .exe file, or a .txt file...all I want... (6 Replies)
Discussion started by: Djaunl
6 Replies

10. UNIX for Dummies Questions & Answers

Viewing unix jaz disk in Linux Mandrake..Can I??

Can I utilize Linux to read a Unix formatted Jaz drive in linux mandrake... Basically are the ext2 files compatible... I seem to be having a rather nasty time due to my ignorance on the platform... Help would be much apprecited Thanks !! T.J.:( ;) (1 Reply)
Discussion started by: mpmania
1 Replies
Login or Register to Ask a Question