Linux - GeneralThis 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.
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.
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.
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?
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.
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.
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.