Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to view images in terminal using FBI

📅 2014-Aug-22 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ fbi, image, viewer ⬩ 📚 Archive

Framebuffer Image Viewer (fbi) is a program that can be used to view images at the terminal. However, it only works with actual terminals (/dev/tty), that is the terminals you get when you press Ctrl + Alt + F1 to Ctrl + Alt + F6. It does not work in pseudo terminals (/dev/pts) that are used by terminal programs running in X, like GNOME Terminal.

To install fbi:

$ sudo apt install fbi

Before using the viewer, your username needs to be added to the video group. For example, to add user joe:

$ sudo adduser joe video

After this, any image can be viewed at a real terminal using fbi:

$ fbi foo.jpg

Tried with: FBI 2.07-11 and Ubuntu 14.04

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧