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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-29-2004, 03:49 AM
|
#1
|
Member
Registered: Jun 2004
Distribution: CLFS
Posts: 523
Rep:
|
How do I unpack pdf.pdf files
Hi,
I'd like to know the command to unpack a file in the form pdf.pdf or ps.ps.When I run it through an archiver,it says it's either a gzip or a bunzip file.But how do I do it from the console?Please help.
|
|
|
10-29-2004, 04:19 AM
|
#2
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941
Rep: 
|
pdf files are portable document files that are best opened with Adobe Acrobat Reader, though there are other apps in Linux. ps files are postscript files which you could open with GIMP or several other apps. GIMP will also open pdf files.
They shouldn't have the file extension listed twice, at any rate. Perhaps the person who prepared the file made a mistake?
At any rate, they're not zipped files.
|
|
|
10-29-2004, 04:49 AM
|
#3
|
Member
Registered: Jun 2004
Distribution: CLFS
Posts: 523
Original Poster
Rep:
|
Well,I tried just renaming the file,but it didn't help.I opened it using an archiving utility and it said that the file was in bzp2 format.It unpacked it alright.It certainly doesn't seem to be a mistake on the author's part,coz I come across many files with such extensions.And I ask the guys who prepare and they say it is a compressed file.So it is,coz after the decompress it shows an increase in file size.
And of course i know how to open pdf and ps files.I use pdf's every day at home and at the university.What really foxes me is as to how does the archiver guess what compress type the file has?please advise.
|
|
|
10-29-2004, 05:24 PM
|
#4
|
Member
Registered: Oct 2004
Distribution: Fedora 7, OpenSuse 10.2
Posts: 108
Rep:
|
From a short identifier at the beginning of the file. You can see the file type with the file command, eg 'file my_file.pdf'. file gets its data from the magic file, in my system it's in /usr/share/file. Type 'man file' and 'man magic' for a more comprehensive explanation.
|
|
|
10-29-2004, 08:16 PM
|
#5
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941
Rep: 
|
LasseW,
Not to hijack the thread, but thanks for the info. How
does this work with an encrypted file? Example:
mingdao@james:~$ file Oct_newsletter.pdf.gpg
Oct_newsletter.pdf.gpg: data
|
|
|
10-29-2004, 09:12 PM
|
#6
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Same thing ...
It's an encrypted file, and without the password
it obviously won't be able to tell WHAT you have
in it ... might be mp3, xls or pdf....
If I send you a something in a gift-wrapped box
looking at the box won't tell you anything about
the content (not in detail, of course) ... it may say
on the customs form that it's a present, and that
it's e.g. a Linux-CD. But to get what it REALLY is
you need to open the box.
Cheers,
Tink
|
|
|
All times are GMT -5. The time now is 03:38 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|