<!--DEBUG:--><!--DEBUG:dc3-united-states-software-in-english-pdf-2--><!--DEBUG:--><!--DEBUG:dc3-united-states-software-in-english-pdf-2--><!--DEBUG-spv-->{"id":1938388,"date":"2021-07-04T09:15:00","date_gmt":"2021-07-04T07:15:00","guid":{"rendered":"http:\/\/nhub.news\/?p=1938388"},"modified":"2021-07-04T11:03:19","modified_gmt":"2021-07-04T09:03:19","slug":"how-to-use-quick-look-from-terminal-in-macos","status":"publish","type":"post","link":"http:\/\/nhub.news\/fr\/2021\/07\/how-to-use-quick-look-from-terminal-in-macos\/","title":{"rendered":"How to use Quick Look from Terminal in macOS"},"content":{"rendered":"<p style=\"text-align: justify;\"><b>Quick Look is one of the more compelling features in macOS. Introduced in OS X 10.5 , you no longer do you have to open \u2026<\/b><br \/>\nQuick Look is one of the more compelling features in macOS. Introduced in OS X 10.5, you no longer do you have to open an application just to glance at a file\u2014a press of the Space Bar in the Finder is all it takes. But you may be surprised to find that you can use Quick Look when working in Terminal, a decidedly non-GUI application. This feature can be useful if you\u2019re working in Terminal and want to be sure a certain file is what you think it is before you do something to it. Instead of switching out to the Finder, or using the open command, you can Quick Look the file directly from Terminal. How? The key is a Unix program, qlmanage, introduced in OS X 10.5 and built into macOS. This program was really designed for programmers writing Quick Look generators, but we can use it for our own purposes. To see the Quick Look preview for any file, just type qlmanage -p somefile, where somefile is the full name of a file in the current directory. As an example, here\u2019s how you could use Quick Look from Terminal to examine a PNG file. The two commands below first change to the Mac\u2019s User Pictures\/Fun folder in the Library folder, then ask the system to display the Quick Look preview for one of the images: After you see quite a bit of text go flowing past in Terminal, a Quick Look window will open, displaying the Gingerbread Man user picture. It\u2019s important to note that this is not the Finder\u2019s Quick Look window\u2014in fact, if you switch out to the Finder with the Terminal\u2019s Quick Look window still showing, you\u2019ll see that you can open new Quick Look windows in the Finder. To close the Terminal\u2019s Quick Look window, you can either use the mouse and click the preview window\u2019s close box, or (much simpler) just press Command-C to end the qlmanage program. IDG Note: When you purchase something after clicking links in our articles, we may earn a small commission. Read our affiliate link policy for more details.<\/p>\n<script>jQuery(function(){jQuery(\".vc_icon_element-icon\").css(\"top\", \"0px\");});<\/script><script>jQuery(function(){jQuery(\"#td_post_ranks\").css(\"height\", \"10px\");});<\/script><script>jQuery(function(){jQuery(\".td-post-content\").find(\"p\").find(\"img\").hide();});<\/script>","protected":false},"excerpt":{"rendered":"<p>Quick Look is one of the more compelling features in macOS. Introduced in OS X 10.5 , you no longer do you have to open \u2026 Quick Look is one of the more compelling features in macOS. Introduced in OS X 10.5, you no longer do you have to open an application just to glance [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1938387,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[93],"tags":[],"_links":{"self":[{"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/posts\/1938388"}],"collection":[{"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/comments?post=1938388"}],"version-history":[{"count":1,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/posts\/1938388\/revisions"}],"predecessor-version":[{"id":1938389,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/posts\/1938388\/revisions\/1938389"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/media\/1938387"}],"wp:attachment":[{"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/media?parent=1938388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/categories?post=1938388"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/tags?post=1938388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}