5 Node.js Managers To Install Multiple Node.js Versions

5 Node.js Managers To Install Multiple Node.js Versions

The post Node.js Version Managers – Install and Run Multiple Node.js Versions first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Node.js version managers, also known as “environment managers” are tools that enable developers or system administrators to install and manage several Node.js versions on their

The post Node.js Version Managers – Install and Run Multiple Node.js Versions first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Multipass - Run Virtual Ubuntu Instances in Linux

Multipass – Run Virtual Ubuntu Instances in Linux

The post Multipass – Launch and Run Virtual Ubuntu Instances in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Multipass is a cross-platform, lightweight Ubuntu virtual machine (VIM) manager that runs on Linux, Windows, and macOS. It builds cloud-style Ubuntu VMs, allowing developers to

The post Multipass – Launch and Run Virtual Ubuntu Instances in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Linux Lite - An Ubuntu-Based Distribution for Linux Newbies

Linux Lite – An Ubuntu-Based Distribution for Linux Newbies

The post Linux Lite – A Beginner-Friendly Linux Distribution for Windows Users first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Linux Lite is a free, easy-to-use, and open-source Linux distribution based on the Ubuntu LTS series of releases. By design, it is a lightweight and

The post Linux Lite – A Beginner-Friendly Linux Distribution for Windows Users first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

8 Best Lightweight Linux Distributions For Older Computers

8 Best Lightweight Linux Distributions For Older Computers

The post 8 Best Lightweight Linux Distributions For Older Computers first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Lightweight Linux distributions share similar characteristics with their desktop-oriented counterparts. They give us the best of both worlds but with a slightly modified user experience.

The post 8 Best Lightweight Linux Distributions For Older Computers first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

The Power of the Select Command to Automate Tasks in Bash

The Power of the Select Command to Automate Tasks in Bash
by George Whittaker

Introduction

The select command in Linux is a versatile tool primarily used for menu creation in bash scripts. The command retrieves data from a specified list, which can be an array or other data source, and generates a menu from this data. Depending on the complexity of your task, you can create various types of menus such as a menu based on directory list or even a menu derived from file content.

Basic Syntax

The basic syntax of the select command is as follows:

select v in data_list

do

statement1

statement2

statement3

done 

Here, each menu item is created from the data_list. The data retrieved from this list is stored in a variable to create the menu. You can also use the select command with the case command to create more complex menus.

Creating a Simple Menu

In a simple scenario, you might want to create a menu of mobile brands. You can easily achieve this by creating a bash file with the select command. After executing the script, the user will see a menu of brands and be asked to choose one. The name of the selected brand will then be printed on the screen​.

Using Select Command with a Case Statement

To create a bash menu with a case statement, you can use the select command in conjunction with a case statement. After running the script, the user selects any menu item, and the case statement will match the selected value with its cases. If none of the case values matches the selected menu item, the script will print an “Invalid entry” message and terminate​.

Creating Nested Bash Menus

The select command can also be used to create nested menus. This involves creating a menu under another menu. You can implement nested menus using two or more select and case statements. In this case, the parent menu contains multiple items and a sub-menu contains additional items. When a user selects an item, the script will display the corresponding message or submenu​.

Creating a Bash Menu with an Array

Arrays in bash can store multiple data points, making them an excellent data source for creating bash menus. You can use an array with the select statement to create a menu. In this scenario, a bash subroutine is used to create a menu from the array. The script will check if the selected menu item number is within the appropriate range. If it’s not, the script will prompt the user to select a number within the valid range​.

How to Fix “E: Unable to locate package” Error on Ubuntu

How to Fix “E: Unable to locate package” Error on Ubuntu

The post 5 Ways to Fix “E: Unable to locate package” Error on Ubuntu first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Sometimes, when installing a package on Ubuntu using the APT package manager, you might bump into the error “E: Unable to locate package“. This might

The post 5 Ways to Fix “E: Unable to locate package” Error on Ubuntu first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Fix SSH Permission Denied (Public key) Error

How to Fix SSH Permission Denied (Public key) Error

The post How to Fix SSH Permission Denied (Public key) Error in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

SSH, an acronym for Secure Shell, is a remote protocol that is widely used to make remote connections to servers, network devices, and other remote

The post How to Fix SSH Permission Denied (Public key) Error in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Install Google Chrome on Ubuntu [Using PPA and DEB]

Install Google Chrome on Ubuntu [Using PPA and DEB]

The post Install Google Chrome on Ubuntu, Debian and Linux Mint first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Google Chrome Browser developed by Google Inc. is a freeware web browser licensed under Google Chrome Terms of Service. As per Wikipedia (as of February

The post Install Google Chrome on Ubuntu, Debian and Linux Mint first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Install Ubuntu Restricted Extras Package

How to Install Ubuntu Restricted Extras Package

The post How to Install Ubuntu Restricted Extras first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Ubuntu Restricted Extras is a software bundle for the Ubuntu operating system that allows users to install software that isn’t currently included for ethical or

The post How to Install Ubuntu Restricted Extras first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Install Google Chrome on Linux Desktops

How to Install Google Chrome on Linux Desktops

The post How to Install Google Chrome in Linux [RHEL-based Distros] first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Google Chrome is a most popular, fast, secure, and easy-to-use free cross-platform web browser developed by Google, and was first released in 2008 for Microsoft

The post How to Install Google Chrome in Linux [RHEL-based Distros] first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

8 Cut Command Examples [Cut Parts of Lines in File]

8 Cut Command Examples [Cut Parts of Lines in File]

The post 8 Cut Command Examples [Cut Sections of Line in File] first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

As Linux users, we interact with the text files on a regular basis. One of the common operations we perform on these files is text

The post 8 Cut Command Examples [Cut Sections of Line in File] first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Install and Configure VNC Server in CentOS and RHEL

How to Install and Configure VNC Server in CentOS and RHEL

The post How to Install and Configure VNC Server in CentOS and RHEL first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

In this guide, we’ll explain how to install and configure VNC Remote Access in CentOS 7/8 and RHEL 9/8/7 desktop edition via the tigervnc-server program

The post How to Install and Configure VNC Server in CentOS and RHEL first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

RedHat vs Debian: Administrative Point of View

RedHat vs Debian: Administrative Point of View

The post RedHat vs Debian: Administrative Point of View in 2023 first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

There are countless Linux distributions available, a vast majority are free to download and use. Some are more appropriate for performing particular tasks than others.

The post RedHat vs Debian: Administrative Point of View in 2023 first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Permanently Disable Swap in Linux

How to Permanently Disable Swap in Linux

The post How to Permanently Disable Swap Partition in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Swapping or swap space represents a physical memory page that lives on top of a disk partition or a special disk file used for extending

The post How to Permanently Disable Swap Partition in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Test Network Speed Using iPerf3 Tool in Linux

How to Test Network Speed Using iPerf3 Tool in Linux

The post iPerf3 – Test Network Speed/Throughput in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

iperf3 is a free open-source, cross-platform command-line-based program for performing real-time network throughput measurements. It is one of the most powerful tools for testing the

The post iPerf3 – Test Network Speed/Throughput in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Delete a Large Directory with Files in Linux

How to Delete a Large Directory with Files in Linux

The post How to Delete Large Directory with Thousands of Files in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

File management is one of the common tasks that a user undertakes on a Linux system, which includes creating, copying, moving, modifying, and deleting files

The post How to Delete Large Directory with Thousands of Files in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Psensor - A Hardware Temperature Monitoring Tool for Linux

Psensor – A Hardware Temperature Monitoring Tool for Linux

The post Psensor – Monitor Linux Hardware Temperature [Motherboard and CPU] first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Psensor is a GTK+ (Widget Toolkit for creating Graphical User Interface) based application software that is used to monitor hardware temperature and plot Real-Time graphs

The post Psensor – Monitor Linux Hardware Temperature [Motherboard and CPU] first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

10 Useful Tools to Create Bootable USB from an ISO Image

10 Useful Tools to Create Bootable USB from an ISO Image

The post 10 Useful Tools to Create Bootable USB from an ISO Image first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

CD and DVD writers are a thing of the past. You are not likely to find them in modern-day laptops. If your goal is to

The post 10 Useful Tools to Create Bootable USB from an ISO Image first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

5 Best Free PDF to Word Doc Converters for Linux

5 Best Free PDF to Word Doc Converters for Linux

The post 5 Best PDF to Word Converters for Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Portable Document Format or PDF is one of the most popular file formats, mainly due to its unified standard across platforms and devices, compatibility, and

The post 5 Best PDF to Word Converters for Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Install Varnish and Test Web Server Benchmarking

How to Install Varnish and Test Web Server Benchmarking

The post How to Install Varnish and Perform Web Server Benchmark first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Think for a moment about what happened when you browsed to the current page. You either clicked on a link that you received via a

The post How to Install Varnish and Perform Web Server Benchmark first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

5 Best Open Source Mathematical Equation Editors for Linux

5 Best Open Source Mathematical Equation Editors for Linux

The post 5 Best Mathematical Equation and Formula Writing Tools for Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Are you looking for good software to write mathematical equations? If so, this article provides the top 5 equation editors that you can easily install

The post 5 Best Mathematical Equation and Formula Writing Tools for Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

9 Best Command-Line Email Clients for Linux

9 Best Command-Line Email Clients for Linux

The post 9 Best Command-Line/Terminal Email Clients for Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Recently, I wrote an article covering the best email clients you can use on a Linux Desktop, all of the email clients in that list

The post 9 Best Command-Line/Terminal Email Clients for Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Install Kernel Updates On Ubuntu Without Rebooting

How to Install Kernel Updates On Ubuntu Without Rebooting

The post Livepatch – Install Kernel Updates On Ubuntu Without Rebooting first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

If you are a system administrator in charge of maintaining critical systems in enterprise environments, we are sure you know two important things: 1. Finding

The post Livepatch – Install Kernel Updates On Ubuntu Without Rebooting first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

GPG - Encrypt and Decrypt Files with a Key on Linux

GPG – Encrypt and Decrypt Files with a Key on Linux

The post How to Encrypt and Decrypt Files Using GPG in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

In computing, encryption is a popular and most times the recommended technique of hiding information in a secretive format. GnuPG is one of the useful

The post How to Encrypt and Decrypt Files Using GPG in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Uniq Command - Remove Duplicate Lines from a Linux Files

Uniq Command – Remove Duplicate Lines from a Linux Files

The post 8 Uniq Command Examples [Remove Duplicate Lines in Linux] first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

As Linux users, we interact with various types of files on a regular basis. One of the most common file types on any computer system

The post 8 Uniq Command Examples [Remove Duplicate Lines in Linux] first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Install PostgreSQL Using Source Code in Linux

How to Install PostgreSQL Using Source Code in Linux

The post How to Install PostgreSQL from Source in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

PostgreSQL also called Postgres is a powerful and open-source object-relational database system. It is an enterprise-level database having features such as write-ahead logging for fault

The post How to Install PostgreSQL from Source in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

15 Best Web Hosting Control Panels for Server Management

15 Best Web Hosting Control Panels for Server Management

The post 15 Best Web Hosting Control Panels for Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

As an owner of the website, it is very difficult to manage multiple websites without a control panel. However, to suit the needs, we need

The post 15 Best Web Hosting Control Panels for Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

12 Best Software for Data Center Infrastructure Management

The post 12 Best Software for Data Center Server Management first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

When a company grows its demand for computing resources grows as well. It works for regular companies as for providers, including those renting out dedicated

The post 12 Best Software for Data Center Server Management first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Fix “pip command not found” in Linux

The post How to Fix “Command ‘pip3’ not found” Error in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

PIP is the conventional package manager for Python, which is the standard tool for installing and managing Python packages alongside their dependencies which are not

The post How to Fix “Command ‘pip3’ not found” Error in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Fix

How to Fix “sudo: command not found” Error on Linux

The post How to Fix “-bash: sudo: command not found” in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Have you ever tried to run a Linux command using sudo only to see the warning “sudo command not found” splashed on your terminal? This

The post How to Fix “-bash: sudo: command not found” in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.