pfetch Linux and Unix hardware info device

pfetch Linux and Unix hardware info device

All

Linux Articles / All 108 Views comments

The neofetch command like utility written in a bash shell. The primary function of neofetch is for use in screenshots to show different customers what working system or Linux distro you're utilizing together with theme, icons, hardware config and extra. Now we've got one other software referred to as pfetch. It's a fairly system info software written in POSIX sh. Allow us to see the way to set up and use pfetch Linux and Unix hardware info device.

pfetch Linux and Unix hardware information script

From the challenge web page:

The objective of this venture is to implement a easy system info software in POSIX sh utilizing options constructed into the language itself (the place potential).

The supply code is very documented and I hope it's going to act as a studying useful resource for POSIX sh and easy info detection throughout numerous totally different working methods.

If something within the supply code is unclear or is missing in its rationalization, open a problem. Typically you get too near one thing and also you overlook the “greater image”!

Set up

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

Cloning git repo (alternate set up technique)

One can attempt the git command and clone the pfetch repo on macOS/BSD/Linux and Unix techniques too:
git clone https://github.com/dylanaraps/pfetch.git
Set up 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

Utilization

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

OS help

  • Haiku
  • MacOS
  • Minix
  • Solaris
  • DragonflyBSD
  • FreeBSD
  • NetBSD
  • OpenBSD
  • Home windows subsystem for Linux.
  • Numerous Linux disros similar to Alpine Linux, Arch Linux, Ubuntu, CentOS, Debian, and extra.

Configuration

You'll be able to management pfetch by means of shell setting variables. For instance, simply present os, kernel and uptime, run:
PF_INFO="ascii title os host kernel uptime" /usr/native/bin/pfetch
Pattern outputs:

         _    vivek@nixcraft-nuc02
     ---(_)   os     Ubuntu 18.04.three LTS
 _/  ---     host   NUC7i7DNHE J85489-204
(_) |   |     kernel 5.Zero.Zero-29-generic
    --- _/   uptime 6d 19h 41m
     ---(_)

Conclusion

General it's a little and pleasant system info device written in POSIX sh. The code is absolutely documented very properly. See venture home page here for extra info and choices. In the event you like pfetch take a look at associated instruments:

Posted by: Vivek Gite

The writer is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a coach for the Linux working system/Unix shell scripting. Get the newest tutorials on SysAdmin, Linux/Unix and open supply subjects by way of RSS/XML feed or weekly email newsletter.

Comments