At the time of writing of Bash scripts, sometimes you need to read a file line by line. In this tutorial, we will show you how to read file line by line in Bash. Syntax for Read File Line by Line# The following is the common syntax for reading a file line-by-line: while IFS= read
Make Linux Great Again
How to Work with Date and Time in Bash Using date Command
Date command is an external bash program that allows to set or display system date and time. It also provides several formatting options. Date command is installed in all Linux distros by default. $ which date $ type -a date Find Date Command Location Type date command in terminal which will display current date and
Bash Heredoc
A Heredoc (Here document) is a redirection type which allows to pass multiline lines of input to a command. Sometimes while writing shell scripts you need to pass multiline block of code or text with the command like cat, sftp or tee. In this guide, you will learn how to use the Heredoc in bash.
How to Create Simple Shell Scripts in Linux
Creating shell scripts is one of the most essential skills that Linux users should have at the tip of their fingers. Shell scripts play an enormous role in automating repetitive tasks which otherwise would be tedious executing line by line. In this tutorial, we highlight some of the basic shell scripting operations that every Linux
How to Install Nvidia Drivers on Ubuntu 20.04
This article describes how to install the NVIDIA drivers on Ubuntu 20.04. If your Ubuntu machine has an NVIDIA GPU, you can choose between the open-source driver Nouveau and NVIDIA’s proprietary drivers. By default, Ubuntu uses Nouveau drivers that are generally much slower than the proprietary drivers and lacks support for the latest hardware and
How to Install and Configure Cloudera Manager on CentOS/RHEL 7 – Part 3
In this article, we described the step by step process to install Cloudera Manager as per industrial practices. In Part 2, we already have gone through the Cloudera Pre-requisites, make sure all the servers are prepared perfectly. Here we are going to have 5 node cluster where 2 masters and 3 workers. I have used
How to Install AnyDesk on Ubuntu 20.04
AnyDesk is a popular and lightweight application that allows you to connect remote desktop systems. We can say this is an alternative of TeamViewer and also available for cross-platform like Windows and macOS. In this tutorial, we will show you how to install AnyDesk on Ubuntu 20.04 system. Prerequisites# You must logged in with root
Zeit – A GUI Tool to Schedule Cron and At Jobs in Linux
Zeit is an open-source GUI tool for scheduling jobs via “crontab” and “at”. It is written in C++ and released under GPL-3.0 License. It is an easy to use tool that provides a simple interface to either schedule a one-time job or iterative jobs. Zeit also comes with an alarm and timer which uses sound
Bash Concatenate Strings
In any programming language the concatenation is the commonly used string operations. String concatenate is used to joining the two or more strings together by appending one to end of another string. In this tutorial, you will learn how to concatenate strings in Bash. Concatenating Strings# It’s very easy to concatenate multiple string variables by
Bash until Loop
Loops are primary requirement of any programming languages. Loops are useful when you want to execute a series of commands until the certain condition is satisfied. In Bash, loops are useful for automating repetitive tasks. There are three basic loops for loop, while loop , and until loop. In this tutorial, we will see basics