Author: Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

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…

Read More

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…

Read More

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,…

Read More

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.

Read More

# 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…

Read More

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…

Read More

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…

Read More

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…

Read More

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…

Read More

In the ever-evolving landscape of network security, keeping your systems updated and secure is paramount. Transport Layer Security (TLS) is a critical component of secure network communication, and TLS 1.2 is the preferred version for modern security standards. This article provides a comprehensive guide on enabling TLS 1.2 on Windows Server, ensuring your system’s security is up-to-date. Understanding TLS 1.2 TLS 1.2 is an improved version of the TLS protocol, offering enhanced security features. It addresses vulnerabilities present in earlier versions and supports stronger encryption algorithms, making it an essential update for any Windows Server environment. Prerequisites A Windows Server…

Read More