Detect if a .doc file is password protected on Linux [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I have .doc file. I want to know is there is any shell/linux cmd that can tell whether the doc file is password protected or not.
For pdf files , I have got pdfinfo. Is there anything for .doc files.
Thanks

Install antiword. If document is password protected, the output of antiword file.doc will be Encrypted documents are not supported, otherwise it will be content of the document.

Related

Is it possible to see "hidden" documents without knowing they exist? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 11 months ago.
Improve this question
is it possible to see all files that are theoretically viewable by a link but not linked on the main website?
For example:
Let's say the website has:
index.html
undepage/index.html
supersecretdocument.pdf
Is it possible to see the supersecretdocument.pdf know that the document exists without knowing that it's there?
If you're asking "Can I know a file exists without trying to GET (or HEAD) it?", the answer is "no."

Format string when translating from Excel to xml [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I add headers and footers to my Excel file. Rename the file to zip format and pull out the first sheet(xl/worksheets/sheet1.xml), then I see this line <oddHeader>&C&"Britannic Bold,bold italics"&U&KFF0000"mytext"</oddHeader>
Where can I find documentation on how this string is formed, what parameters are allowed, etc?
Microsoft has documentation for the XML spreadsheet format
For your specific question, the OddHeader class is documented here.

Can I view a linux directory in binary mod? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I've learned that linux directory is a file. So can I view it in binary mod like viewing other files with hexdump?
You can dump raw portions of a drive using the dd command and that is about as low level as you can get. You can also use debugfs to do maintenance on the filesystem.

Link to a PGP/ASC-File on my website [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I would like to include a link to a pgp key (asc-file) on my website, and if someone clicks it, I want it to open in the browser window (instead of displaying a download prompt). How can I do that? I tried the mime type mentioned on the following page, but it doesn't seem to work. http://www.bauser.com/websnob/keydist
Adding the following line to my .htaccess file seems to solve the problem.
AddType text/plain asc
It may not be the best solution, but it works for now.

lpr to print files with different names and directories [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a script witch use lpr to print the output to a PDF file.
I would like to change the location or even the file name of the saved file.
I read several forums about lpr and did not find anything on how to specify the name and the directory of the printed pdf.
Instead I always get a standard name in my PDF directory.
Thank you!
Take a look at cups-pdf, https://help.ubuntu.com/community/PDFPrinting . You can configure the output directory and filename with it. The configuration file is /etc/cups/cups-pdf.conf.

Resources