This article will show you how to compare floating point number in bash. Here are my shared experiences while working with the Linux system. Compare 2 common numbers Usually, we compare two integer numbers. For example, we have 2 numbers as follows: $ NUM1=2 $ NUM2=1 And to compare these two numbers in Linux, we
This article will show you how to make a bash script run as a service in Debian 9. Debian is one of the most popular OSs in the world today. Write your bash script The first thing, of course, is that you need your bash script file. In fact, the script written in bash or
How to calculate percent of memory used in Linux? This article will guide you to do that. For Linux desktops, you can easily see the percentage of RAM used on your computer through programs like System Monitor. But for Linux servers, only the command line, you must use it. Free command in Linux Linux provides
Now is the last step in 3 steps how to write a bash script file. This article will learn about the script file location and script execution. The execution of the script sounds very simple, but sometimes, you don’t understand why it doesn’t work as expected. Script file location Normally, when you write and assign the
In this article, we will learn step 2 that is to assign execution permission for a bash script file. In the previous article, you did step 1 of 3 steps to write a bash script file. That is to write a simple script file. The chmod command is in Linux The chmod command in Linux
After you’ve read the steps to write a bash script file, what’s in that bash script file? What is the format of a bash script file? “Hello World” script To keep things simple and familiar, I’ll start with a script called “Hello World”. This is probably a type of file that you will probably encounter
Today I will share with you a simple script to help alert the current coin price on Bittrex that you want through the bash script. Script will alert the price of a coin on Bittrex that you want. Input is quite simple, you choose coin on the floor, for example usdt-btg. That is, you choose
In this article, I will show you how to control iptables in the bash script. Iptables is a firewall that is built into almost all Linux operating systems. Using it makes your system a more secure layer. Controlling the iptables service and its rules manually, most people have done. But sometimes, iptables needs to work
Today, I wrote a script to install the LAMP stack on CentOS 6, using PHP 7.2. This article will guide you through the script to install LAMP (PHP 7) on CentOS 6 quickly. About this script Script will install the LAMP stack on CentOS 6 with just a few commands. Basic features of the script.
Today, I will show you how to use the script to install LAMP (PHP 7) on Ubuntu 16. Installing LAMP stack on Ubuntu is pretty much used, this script will save you time. Installed quickly and successfully tested. Server resource requirements Server requirements are as follows: OS: Ubuntu 16.04.4 LTS 64bit. RAM: over 1GB memory.