Show System Information In Your Terminal With Screenfetch

Screenfetch For Ubuntu
Screenfetch For Ubuntu.

Screenfetch provides useful information about your computer and your operating system within a terminal window.

Screenfetch is available in the repositories of most Linux distributions.

If you are using a Debian based distribution such as Debian itself, Ubuntu, Linux Mint, Zorin etc you can use the following command:

sudo apt-get install screenfetch

Note that for Debian you won't need to use sudo unless you have specifically set it up.

If you are using Fedora or CentOS you can use the following command to install Screenfetch

yum install screenfetch

Finally for openSUSE you can use zypper as follows:

zypper install screenfetch

You can start Screenfetch within a terminal window simply by typing screenfetch

If you are using Ubuntu then you may receive an error about a missing GLIB. The way to fix this is to install python-gobject-2.

Type sudo apt-get install python-gobject-2 to get rid of the error.

When you run screenfetch you will see the logo for the operating system you are running and you will see the following information displayed:

You can get the screenfetch information to appear every time you open a new terminal window by adding it to your bashrc file.

Type the following in a terminal window to edit your bashrc file:

sudo nano ~/.bashrc

Use the down arrow to move to the end of the file and tyoe the following on a new blank line:

if [ -f /usr/bin/screenfetch ]; then screenfetch; fi

This command basically checks for the existence of screenfetch in the /usr/bin directory and if it is there it runs it.

Press CTRL and O at the same to save the file and then CTRL and X to exit the file.

Now whenever you open a terminal or use a different TTY the screenfetch information will appear.

According to the manual pages, Screenfetch is available for the following Linux distributions (some of these cease to exist now):

  • Antergos
  • Arch
  • BLAG
  • CentOS
  • Chakra
  • Chapeau
  • Crunchbang
  • CRUX
  • Debian
  • Deepin
  • Dragora
  • Elementary OS
  • Evolve OS
  • Fedora
  • Frugalware
  • Fuduntu
  • Funtoo
  • Gentoo
  • gNewSense
  • Jiyuu
  • Kali
  • KaOS
  • Korora
  • LinuxDeepin
  • Linux Mint
  • Linux Mint Debian Edition
  • Logos
  • Mageia
  • Mandriva
  • Manjaro
  • NixOS
  • openSUSE
  • Parabola
  • PeppermintOS
  • Raspbian
  • Red Hat
  • Sabayon
  • Scientific
  • Slackware
  • SolusOS
  • Tinycore
  • Trisquel
  • Ubuntu
  • Viperr
  • Void

The number of desktop managers and windows managers that can be detected by Screenfetch is limited as well.

For instance the desktop managers are KDE, Gnome, Unity, Xfce, LXDE, Cinnamon, MATE, CDE and RazorQT.

Screenfetch has a number of switches which you can use to show and omit information.

For instance if you don't want to have a logo displayed use screenfetch -n and the reverse of this would be to just display the logo without information. You can achieve this by using screenfetch -L.

Other switches include the ability to remove colour from the output (screenfetch -N) and the ability to show the logo first and then the information underneath (screenfetch -p).

You can get screenfetch to display the information as if you were running a different distribution. For instance if you are using Ubuntu but you want screenfetch to show the Fedora logo and information.

To do this type the following:

screenfetch -D fedora

If you want to display the CentOS logo but have the information show that you are using Ubuntu use the following command:

screenfetch -A CentOS

For the life of me I can't think why you would want to do this but the option is there if you wish to use it.

You can use screenfetch to take a screenshot by using the -s command line switch. Note that this takes a full screenshot and not just the terminal you are using.