LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Unreadabel file (https://www.linuxquestions.org/questions/linux-general-1/unreadabel-file-226842/)

Haroon 09-05-2004 01:04 AM

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??

redjokerx 09-05-2004 04:41 AM

If the file isn't a text file, you will get all sorts of junk. What's inside the zip file?

Haroon 09-05-2004 04:58 AM

This is a simple text file in English. I have read it on my XP but i can't do it in LINUX.

redjokerx 09-05-2004 10:03 PM

How are you unzipping?

student04 09-05-2004 11:09 PM

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

redjokerx 09-06-2004 03:17 AM

did it end up being corrupt?

Haroon 09-06-2004 02:56 PM

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.

Tinkster 09-06-2004 03:09 PM

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

Haroon 09-06-2004 03:15 PM

I tryed with :
$ cat filename.doc
NO RESULT

student04 09-06-2004 04:51 PM

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


Haroon 09-07-2004 03:50 AM

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??

bathory 09-07-2004 03:58 AM

If you want to open it in Linux, you have to use OpenOffice or a similar word processing tool

mikshaw 09-07-2004 08:05 AM

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.

student04 09-07-2004 09:23 AM

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

Haroon 09-08-2004 04:05 AM

Thank you very much I have opened the file, No problem more !!


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