Home / Linux / pfetch Linux and Unix hardware information tool
nixCraft

pfetch Linux and Unix hardware information tool

pfetch Linux and Unix hardware information tool

The neofetch command like application written in a bash shell. The primary objective of neofetch is for use in screenshots to show different customers what running machine or Linux distro you’re the usage of together with theme, icons, hardware config and extra. Now we’ve got every other tool known as pfetch. It is an attractive machine information tool written in POSIX sh. Let us see the way to set up and use pfetch Linux and Unix hardware information tool.

Adblock detected 😱
My site is made conceivable through showing on-line ads to my guests. I am getting it! Ads are traumatic however they lend a hand stay this site operating. It is difficult to stay the website operating and generating new content material when such a lot of other people block advertisements. Please imagine donating cash to the nixCraft by way of PayPal/Bitcoin, or turn into a supporter the usage of Patreon.

pfetch Linux and Unix hardware information script

From the challenge web page:

The objective of this challenge is to put into effect a easy machine information tool in POSIX sh the usage of options constructed into the language itself (the place conceivable).

The supply code is extremely documented and I’m hoping it is going to act as a studying useful resource for POSIX sh and easy information detection throughout quite a lot of other running techniques.

If the rest within the supply code is unclear or is missing in its rationalization, open a topic. Sometimes you get too with regards to one thing and you miss out on the “bigger picture”!

Installation

Use the wget command on Linux or Unix to put in pfetch:
wget https://github.com/dylanaraps/pfetch/archive/master.zip
Use the unzip command or tar command to unzip the record named grasp.zip on Linux or Unix:
unzip grasp.zip
Install the record the usage of set up command:
sudo set up pfetch-master/pfetch /usr/native/bin/
ls -l /usr/native/bin/pfetch

Cloning git repo (change set up manner)

One can check out the git command and clone the pfetch repo on macOS/BSD/Linux and Unix techniques too:
git clone https://github.com/dylanaraps/pfetch.git
Install it:
sudo set up pfetch/pfetch /usr/native/bin/
ls -l /usr/native/bin/pfetch

Linux penguin A pretty system information tool written in POSIX sh

Usage

Now that pfetch put in, it’s time to run it. Simply sort:
pfetch
OR
/usr/native/bin/pfetch
pfetch Linux and Unix hardware running on Ubuntu

OS beef up

  • Haiku
  • MacOS
  • Minix
  • Solaris
  • DragonflyBSD
  • FreeBSD
  • NetBSD
  • OpenBSD
  • Windows subsystem for Linux.
  • Various Linux disros reminiscent of Alpine Linux, Arch Linux, Ubuntu, CentOS, Debian, and extra.

Configuration

You can keep watch over pfetch via shell surroundings variables. For instance, simply display os, kernel and uptime, run:
PF_INFO="ascii title os host kernel uptime" /usr/native/bin/pfetch
Sample outputs:

         _    [email protected]
     ---(_)   os     Ubuntu 18.04.three LTS
 _/  ---     host   NUC7i7DNHE J85489-204
(_) |   |     kernel five.Zero.Zero-29-generic
    --- _/   uptime 6d 19h 41m
     ---(_)

Conclusion

Overall this can be a little and pleasant machine information tool written in POSIX sh. The code is totally documented rather well. See challenge house web page right here for extra information and choices. If you prefer pfetch take a look at comparable gear:

Posted through: Vivek Gite

The writer is the writer of nixCraft and a seasoned sysadmin, DevOps engineer, and a teacher for the Linux running machine/Unix shell scripting. Get the newest tutorials on SysAdmin, Linux/Unix and open supply subjects by way of RSS/XML feed or weekly electronic mail publication.

Check Also

How to Watch TCP and UDP Ports in Real-time

How to Watch TCP and UDP Ports in Real-time

How to Watch TCP and UDP Ports in Real-time In tool phrases, particularly on the …

Leave a Reply

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

Categories

Recent Posts

Categories