LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-05-2004, 01:04 AM   #1
Haroon
Member
 
Registered: Sep 2004
Posts: 60

Rep: Reputation: 15
Angry Unreadabel file


Hello
I get a zip file and unzipped it but when i try to read it I enter " cat filename" on the terminal window then I get the great amount of unreadable sine.
What i must do to read this file??
 
Old 09-05-2004, 04:41 AM   #2
redjokerx
Member
 
Registered: Aug 2004
Location: San Diego
Distribution: Slackware
Posts: 303

Rep: Reputation: 31
If the file isn't a text file, you will get all sorts of junk. What's inside the zip file?
 
Old 09-05-2004, 04:58 AM   #3
Haroon
Member
 
Registered: Sep 2004
Posts: 60

Original Poster
Rep: Reputation: 15
This is a simple text file in English. I have read it on my XP but i can't do it in LINUX.
 
Old 09-05-2004, 10:03 PM   #4
redjokerx
Member
 
Registered: Aug 2004
Location: San Diego
Distribution: Slackware
Posts: 303

Rep: Reputation: 31
How are you unzipping?
 
Old 09-05-2004, 11:09 PM   #5
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
this is what always works on my computer:
Code:
unzip filename.zip
for the zip file... at least on mandrake 10

or maybe the zipped file is corrupt

Last edited by student04; 09-05-2004 at 11:11 PM.
 
Old 09-06-2004, 03:17 AM   #6
redjokerx
Member
 
Registered: Aug 2004
Location: San Diego
Distribution: Slackware
Posts: 303

Rep: Reputation: 31
did it end up being corrupt?
 
Old 09-06-2004, 02:56 PM   #7
Haroon
Member
 
Registered: Sep 2004
Posts: 60

Original Poster
Rep: Reputation: 15
unzip works good after unzipping i get the another file " filename.doc" when i try to read the .doc file with help of the cat command in my terminal window. i get the message that the file or directory does't exist. and some time after cat i get a great amount of unreadable sin.
as i said that it is a simple text file.
 
Old 09-06-2004, 03:09 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Nope, it's most likely a word document :)

try
file filename.doc
and it will tell you what kind of file it is.


Cheers,
Tink
 
Old 09-06-2004, 03:15 PM   #9
Haroon
Member
 
Registered: Sep 2004
Posts: 60

Original Poster
Rep: Reputation: 15
I tryed with :
$ cat filename.doc
NO RESULT
 
Old 09-06-2004, 04:51 PM   #10
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
cat doesn't work that well with doc files... i tried it on one of mine, and it printed English words mixed together with boxes and question marks - thus it understood some things, but not all of the file.

Code:
$ file sparknotes.doc
sparknotes.doc: Microsoft Office Document
 
Old 09-07-2004, 03:50 AM   #11
Haroon
Member
 
Registered: Sep 2004
Posts: 60

Original Poster
Rep: Reputation: 15
Thank you very much for your reply but what do you mean with code :
$ file sparknotes.doc
sparknotes.doc: Microsoft Office Document
How can i use it??
does it open the file for me??
 
Old 09-07-2004, 03:58 AM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
If you want to open it in Linux, you have to use OpenOffice or a similar word processing tool
 
Old 09-07-2004, 08:05 AM   #13
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Quote:
Originally posted by Haroon
Thank you very much for your reply but what do you mean with code :
$ file sparknotes.doc
sparknotes.doc: Microsoft Office Document
How can i use it??
does it open the file for me??
"file" tells you what type of file it is, as you can see in your post. It does not open the file for you.
*.doc is a binary file, not a text file, so you will need something other than a text editor to open it.
As bathory suggested, Open Office should work. Abiword should work as well.
 
Old 09-07-2004, 09:23 AM   #14
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
what i posted was just the command i entered on one of the files i had on my computer, to show you as an example. milkshaw and bathory are correct in that you need OpenOffice or similar to open the doc file, and not a simplistic text editor.

http://download.openoffice.org/1.1.2/index.html
 
Old 09-08-2004, 04:05 AM   #15
Haroon
Member
 
Registered: Sep 2004
Posts: 60

Original Poster
Rep: Reputation: 15
Thank you very much I have opened the file, No problem more !!
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
forrtl: severe (47): write to READONLY file, unit 5, file /dev/pts/1 terrence Programming 1 10-01-2005 10:22 PM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 03:15 AM
libawt.so: libXp.so.6: cannot open shared object file: No such file or directory man26 *BSD 0 09-10-2004 08:34 AM
Yum update complains missing file (broken dep), but file can be located. davidas Linux - Software 0 03-27-2004 09:11 PM
How to play a media file/ video file/mp3 file recorded in harddisk/cd-rom arindam Linux - Newbie 2 09-05-2003 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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