Do you want to see images from the terminal? feh is your tool

feh catch

La console or terminal is our day to day, allows us to perform a multitude of actions in a more efficient way than from the graphical environment and consumes less resources than a GUI, that without a doubt, but sometimes there are certain things that are complicated from the console and that we do with some ease from a desktop environment. One of those actions is to be able to see images from the terminal. As you know, they can be listed with an ls, we can obtain data from the file that contains them, copy them, move them, rename them, change their permissions, etc.

However when we want to visualize them, then the problem comes, right? Well, there are some tools to be able to view images within our terminal. One of them is the one we present to you today here: feh. It is a powerful tool for your Linux console that can display images in a variety of different ways. To do this, when invoking it, it will run an X window of the graphical server within the command line to display the image. That makes it a very light option compared to other graphics apps.

You can see more information about feh in the official website of the project, but here we are going to show you how to install it on your distro and how to start handling it. For example, from Arch you can install it with a simple command:

sudo pacman -S feh

Or if you prefer, in Debian and derivatives, you can choose to:

sudo apt-get install feh

Once you have it installed, you can start using it, for this go to the directory where you have the image you want to view, and then simply run the program so that it shows one by one all the images contained in said directory:

feh

There are other modes. But if you want to show a montage of all the thumbnail images, you can use the -m option, to index use -i, for thumbnail you can use -t, or display multiple images in multi-window with -w, while the -l option only list the images inside the directory, like an ls but only for images ... Examples:

feh -m

feh -i

feh -t

feh -w

feh -l

So simple and practical. I hope you like it, don't forget to leave your comments.


4 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   someone said

    Very good!!!

  2.   Daniel said

    It can also be used to place a Desktop Background with –bg- {center, tile, fill, max, scale} which creates a bash ~ / .fehbg script as an executable that allows us to start it with our window manager.

  3.   Only said

    Without X-server - not working :-(

    1.    Daniel said

      No, but there are alternatives like using MPV without XServer, like this:

      mpv –vo = drm –loop = yes –image-display-duration = inf * .jpg