MariaDB ia an enhanced, drop-in replacement for MySQL. MariaDB can be a better choice for choice for database professionals looking for a robust, scalable, and reliable SQL server. MariaDB has a number of updated features over MySQL. Use below links to read features comparison between MariaDB and MySQL This article will help you to Install MariaDB in Ubuntu 18.04 and 16.04 LTS and Other Systems using the Apt package manager, For older versions use the Apt-get command. Step 1 – Backup Databases MariaDB 10.2 has been released with various upgrades and configuration changes than previous releases. So, If you have…
Author: Rahul
If you’re using a Linux distribution that uses the RPM package format, you’re probably familiar with the RPM command. RPM stands for Red Hat Package Manager and is used to manage packages on Red Hat and its derivatives like Fedora, CentOS, and OpenSUSE. In this tutorial, we’ll cover the basics of using the RPM command to install, upgrade, and remove packages on your Linux system. Installing Packages with RPM Command To install a package using the RPM command, you need to have the RPM package file on your system. You can either download the RPM package from the internet or…
The file with the .deb extension is the package for the Debian-based systems. You can install Debian packages directly with apt repositories (PPA). It also allows installing locally downloaded deb packages via the command line. The Ubuntu and other Debian based systems provides dpkg (Debian Package Management System) for directly installing .deb files. Another apt command is a powerful command-line tool, which works with Ubuntu’s Advanced Packaging Tool, and helps in managing Debian packages. This tutorial will help you to install deb files on Ubuntu and other Debian-based systems. How to Install .deb file with dpkg dpkg is a command-line…
Command: read -s -p “Enter Password: ” pswd How to Use:- If you want to take input of password in shell script. You must want to not to show any character on-screen entered by user. Use -s for silent mode. Using -s input characters are not echoed. For example create a shell script named inputpwd.sh and add following content. $ vim inputpwd.sh #!/bin/bash ### Input password as hidden charactors ### read -s -p “Enter Password: ” pswd ### Print the value of pswd variable ### echo -e “\nYour password is: ” $pswd Let’s execute the script and enter your password,…
Command: echo -e “\\e[0;41mBackground in Red Color\\e[0m” The Above commands are using to set background color of output on Linux bash shell. In The output of above command background will be in red color. There are many other colors available which you can use defined as below. Just replace “0;41” with other color values in above text. Other Color Codes’s: Black 0;40 Red 0;41 Green 0;42 Yellow 0;43 Blue 0;44 Purple 0;45 Cyan 0;46 White 0;47 The 0m is used to reset the settings.
# echo -e “e[0;31mText in Red Colore[0m” The Above commands are showing to set foreground ( Text ) color of output on Linux bash shell. The output of above command will be in red color. There are many other colors available which you can use defined as below. Just replace “0;31” with other color values in above text. Foreground ( Text ) Color’s: Black 0;30 Red 0;31 Green 0;32 Yellow 0;33 Blue 0;34 Purple 0;35 Cyan 0;36 White 0;37 Reset Text Color 0m Use following codes to show text in Bold with same colors. Black 1;30 Red 1;31 Green 1;32…
Questions – How can I print a newline as \n in bash shell? How to use \n in a shell script to print new line. Issues – Echo newline in bash shell prints literal \n but not new line. Printing literal ‘\n’ in a nested print new line in bash scripts. Command: Use the following command to print newline using \n in bash shell scripting. You have other options with the echo command. Read the complete tutorial. printf “first line\nsecond line\n” Uses of \n in Bash \n (Line Feed) is used as a newline character for Unix-based systems. Below is…
Everyone wants their scripting to be more interactive, especially users. Users want to feel like they’re working with a modern piece of software instead of something cobbled together from old batch files and cryptic one-liners. They also want a self-documenting script that requires as little documentation as possible. If these things sound like what you’ve been waiting for, then read on! A shell script is a perfect place for user input because it is such a simple programming construct. It essentially consists of a series of commands that have been given their own names The Linux read command provides you…
Linux servers are powerful tools in data management and analysis, especially when it comes to handling large volumes of files and data. One common task that often perplexes both new and experienced users alike is finding a file containing a specific text string. This article will guide you through various methods to efficiently locate these files, using practical examples to enhance your Linux server management skills. Understanding the Basics: grep Command The `grep` command is your first line of defense in searching for text strings within files. It’s a versatile and powerful tool that searches the input files for lines…
Welcome to the CentOS 6.6. CentOS is an Enterprise-class Linux Distribution. CentOS Team as announced the latest revision CentOS 6.6. It has many changes and upgrades to the existing setup. Major Changes in CentOS 6.6 Following is the list of major changes done in new release centos 6.6. Enhanced SCSI unit attention handling to enable responding to certain unit commands. The OpenvSwitch module is now available as a kernel module. New HyperV daemons have been added to enable/improve running CentOS in Microsoft HyperV hosts. As a technology preview 6.6 can be run as a 2nd generation VM on Microsoft’s 2012R2…