{"id":9076,"date":"2021-08-09T18:08:42","date_gmt":"2021-08-09T18:08:42","guid":{"rendered":"https:\/\/linuxways.net\/?p=9076"},"modified":"2021-08-09T18:08:51","modified_gmt":"2021-08-09T18:08:51","slug":"how-to-open-an-image-in-linux-mint-20-terminal","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/mint\/how-to-open-an-image-in-linux-mint-20-terminal\/","title":{"rendered":"How to Open an Image in Linux Mint 20 Terminal"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>This article is especially targeted to the users who are fond of the Linux command-line interface (CLI) i.e. the users who wish to do everything through the Linux terminal. We generally use a GUI-based application to view images on any operating system, however, Linux provides us with the flexibility to even open the images from within the terminal. This article will discuss the two different methods of opening an image in the Linux Mint 20 terminal.<\/p>\n<h2>Methods of Opening Images Directly in Linux Mint 20 Terminal:<\/h2>\n<p>For opening an image within the Linux Mint 20 terminal, you can opt for either of the two methods shown below:<\/p>\n<h3>Method # 1: Using a Built-in Command:<\/h3>\n<p>There is a built-in Linux command for opening an image in the terminal which is as follows:<\/p>\n<pre><strong>$ xdg-open Image.extension<\/strong><\/pre>\n<p>Here, you need to replace Image.extension with the exact name of the image that you want to open followed by its correct extension. Also, if your desired image resides within the current directory, then it is fine, otherwise, you will have to provide its complete path in the above-mentioned command. We wanted to open an image named BootLoader.jpeg that resides in our current directory.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"438\" height=\"25\" class=\"wp-image-9077\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-123.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-123.png 438w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-123-300x17.png 300w\" sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><\/p>\n<p>As soon as you will run this command, your specified image will open in the terminal as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"643\" height=\"462\" class=\"wp-image-9078\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-124.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-124.png 643w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-124-300x216.png 300w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<h3>Method # 2: Installing an External Utility:<\/h3>\n<p>Another method of opening an image in the Linux Mint 20 terminal is to install an external utility named Fim. This utility can be installed on your system with the following command:<\/p>\n<pre><strong>$ sudo apt install fim<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"408\" height=\"24\" class=\"wp-image-9079\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-125.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-125.png 408w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-125-300x18.png 300w\" sizes=\"auto, (max-width: 408px) 100vw, 408px\" \/><\/strong><\/p>\n<p>Once the Fim utility is installed on your Linux Mint 20 system, you can use it to open an image in the terminal in the manner shown below:<\/p>\n<pre><strong>$ fim Image.extension<\/strong><\/pre>\n<p>Again, you need to replace Image.extension with the exact name of the image that you want to open followed by its correct extension. Also, if your desired image resides within the current directory, then it is fine, otherwise, you will have to provide its complete path in the above-mentioned command. We wanted to open an image named BootLoader.jpeg that resides in our current directory.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"399\" height=\"26\" class=\"wp-image-9080\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-126.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-126.png 399w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-126-300x20.png 300w\" sizes=\"auto, (max-width: 399px) 100vw, 399px\" \/><\/p>\n<p>When this command will be executed, your specified image will immediately open in the terminal as shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"647\" height=\"458\" class=\"wp-image-9081\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-127.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-127.png 647w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-127-300x212.png 300w\" sizes=\"auto, (max-width: 647px) 100vw, 647px\" \/><\/p>\n<h2>Conclusion:<\/h2>\n<p>This tutorial explained two very simple methods of opening an image in Linux Mint 20 terminal. The first method was relatively easier than the second one but the second one also did not have any complexities other than the addition of an extra step. By using any of these methods, you can easily achieve the goal of opening any desired image of your choice in the Linux Mint 20 terminal.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction: This article is especially targeted to the users who are fond of the Linux command-line interface (CLI) i.e. the users who wish to do everything through the&hellip;<\/p>","protected":false},"author":1,"featured_media":9172,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[129],"class_list":["post-9076","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mint","tag-linux-mint-20"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/9076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=9076"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/9076\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/9172"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=9076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=9076"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=9076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}