TranslateProject/sources/tech/20151027 Display Linux Distribution Logo ASCII Art In Terminal.md
2015-10-27 11:47:41 +08:00

5.6 KiB
Raw Blame History

Display Linux Distribution Logo ASCII Art In Terminal

Display Linux logo in ASCII art

See the picture above? You might have seen people sharing such desktop screenshot with terminal showing the logo of the Linux distribution used in ASCII characters. Looking at those screenshots, you may wonder how to show the logo of Linux distribution in terminal in ASCII characters.

In this tutorial, Ill show you a couple of tools that will display Linux logo in command line.

1. Use screenfetch to display Linux distro logo in ASCII art

screenfetch is the easiest way to display Linux distribution logo in the terminal. You dont have to specify anything, it will auto-detect the Linux distribution. And not just logo, screenfetch also displays some basic hardware information alongside it.

Install screenfetch

To install screenfetch in Ubuntu based distributions such as Linux Mint, elementary OS, Linux Lite, Zorin OS etc, you can use the command below:

sudo apt-get install screenfetch

Note: For Ubuntu 14.04 based distros, youll have to add a PPA (as suggested by Benjamin in the comments). Use the command below:

sudo apt-add-repository ppa:djcj/screenfetch
sudo apt-get update
apt-get install screenfetch

To install screenfetch in Arch based distributions such as Antergos, Manjaro, Chakra etc, use the command below:

sudo pacman -S screenfetch

To install screenfetch in Fedora based Linux distributions such as Korora etc, use the command below:

sudo dnf install screenfetch

Using screenfetch

Using screenfetch is utterly simple. Open a terminal and use the command below:

screenfetch

Thats it. Youll see the logo of your Linux distribution displayed in ASCII art along with some information about your system:

ASCII display for Antergos

ASCII display for Ubuntu

Taking screenshot with screenfetch [Optional]

Now this is optional because you can use the Screenshot tools to take screenshot of the displayed ASCII art in terminal. But if you install command line screenshot utility, scrot (it is available in the default repository of several Linux distributions), you can automatically take a screenshot of the displayed Linux logo along with your desktop with the command below:

screenfetch -s

If I combine screenfetch with vintage looking cool-retro-term, the result is even more awesome:

screenfetch with cool retro term

2. Use linux_logo to display Linux distro logo in ASCII art

linux_logo is another command line tool to display ASCII art of Linux distributions. Unlike screenfetch, linux_logo doesnt automatically identifies and displays the correct Linux distro logo.

For Ubuntu, it displayed Debian and for Antergos, it displayed sort of BSD-ish logo.

Debian instead of Ubuntu?

Debian instead of Ubuntu?

But linux_logo has a number of options that you can use. You can choose to display the logo of any Linux distribution available in the list. Before we see how to do that, let me show you how to install it first.

To install linux_logo in Ubuntu based Linux distributions, use the command below:

sudo apt-get install linuxlogo

To install linux_logo in Arch based Linux distributions, use the command below:

sudo pacman -S linux_logo

To install linux_logo in Fedora based Linux distributions, use the command below:

sudo dnf install linux_logo

Once installed, use the command below to list all the options:

linux_logo -L list

The output would be like:

using linux_logo

As you can see there are a number of options. You can choose the number of the Linux distribution and use it in the following way:

linux_logo -L 25

This will display OpenSUSE logo:

OpenSUSE ASCII art

There are more options to display certain sort of info and hide other etc. I left it up to you to explore it.

Which one did you like more?

screenfetch or linux_logo? Which one you liked more? Personally, I prefer screenfetch. Its easier to use and does what it is expected of it. What about you?

注:投票 Which one you prefer?

  • screenfetch
  • linux_logo
  • Don't care

投票代码:


via: http://itsfoss.com/display-linux-logo-in-ascii/

作者:Abhishek 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出