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..

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

Cloud computing has become a vital part of modern-day technology. It enables users to access data and applications from anywhere in the world using an internet connection. Cloud computing allows businesses and individuals to store, process, and manage data efficiently and cost-effectively. In this article, we’ll cover the basics of cloud computing and explore some of its advanced concepts. What is Cloud Computing? Cloud computing is the delivery of computing services such as servers, storage, databases, networking, software, analytics, and intelligence over the internet. In simpler terms, it is the on-demand availability of computer system resources, especially data storage and…

Read More

Ubuntu team has released the newer version Ubuntu 14.10 named Utopic Unicorn. This release has very short life supporting for 9 months only for various flavors like Ubuntu Desktop, Ubuntu Server, Ubuntu Core, Kubuntu, Ubuntu Kylin. This version will reach to his end of life on April 2015. The Ubuntu 14.10 has been released with kernel 3.16. In this version, there are various bug fixes and new hardware support including expanded architecture support for Power 8 and arm64 platforms. Release note: https://wiki.ubuntu.com/UtopicUnicorn/ReleaseNotes Download Ubuntu 14.10 (Utopic Unicorn) Find below download links for various Ubuntu 14.10 flavors. http://releases.ubuntu.com/14.10/ (Ubuntu Desktop and…

Read More