Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

file: doesn't appear to be a documented command, while filetype is [1]

Searching for a few random queries with either "file:pdf" or "filetype:pdf" shows that both return pdfs, but the results that I get are different. Not sure what to make of that or which is better.

[1] http://www.googleguide.com/using_advanced_operators.html



For me, "file:pdf" returns .pdfs, .pdf documentation, .pdf information...all kinds of things which aren't .pdf.

"filetype:pdf" seems to be the only command which reliably returns just .pdfs.

I'm in the UK, your mileage may vary.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: