neofetch: Awesome system info bash script that supports Linux, MacOS, and Unix-like systems

Posted on in Categories Command Line Hacks, Howto last updated May 7, 2017

The neofetch command written in a bash shell. The main purpose of neofetch is to be used in screenshots to display other users what operating system or Linux distro you are using including theme, icons and more. This command shows info about your system next to an image, your operating system logo and other info. Neofetch version 3.1.0 has been released. Let us see how to install the latest version and use it.
Continue reading “neofetch: Awesome system info bash script that supports Linux, MacOS, and Unix-like systems”

How to use parallel ssh (PSSH) for executing ssh in parallel on a number of Linux/Unix/BSD servers

Posted on in Categories Cloud Computing, Command Line Hacks, Howto last updated April 21, 2017

Recently I come across a nice little nifty tool called pssh to run a single command on multiple Linux / UNIX / BSD servers. You can easily increase your productivy with this SSH tool.

More about pssh

pssh is a command line tool for executing ssh in parallel on some hosts. It provides specialties includes:

  1. Sending input to all of the processes
  2. Inputting a password to ssh
  3. Saving output to files
  4. IT/sysadmin taks automation such as patching servers
  5. Timing out and more

Let us see how to install and use pssh on Linux and Unix-like system.

pssh-welcome

How to protects Linux and Unix machines from accidental shutdowns/reboots with molly-guard

Posted on in Categories Command Line Hacks, Debian Linux, Hardware last updated February 19, 2017

Oops! I did it again. I thought I was logged into my home server. Turns out I rebooted the db server. Another my not so favorite is typing “shutdown -h 0” into the wrong terminal. I know a few people who have admitted to doing that here.

My anger that can't be contained
Is there any end to the madness? Do I need to suffer from accidentally random reboots and shutdowns? After all, it is human nature to make mistakes, but one should not keep on making the same mistakes again and again.

15 Useful Linux and Unix Tape Managements Commands For Sysadmins

Posted on in Categories Command Line Hacks, Hardware, Howto, Storage last updated March 28, 2016

Tape devices should be used on a regular basis only for archiving files or for transferring data from one server to another. Usually, tape devices are all hooked up to Unix boxes, and controlled with mt or mtx. In this tutorial you will learn about:

  • Tape device names
  • Basic commands to manage tape drive
  • Basic backup and restore commands