Articles on Trending Technologies

Technical articles with clear explanations and examples

C Program to add two fractions

Sunidhi Bansal
Sunidhi Bansal
Updated on 18-Oct-2019 3K+ Views

Given with the input as fraction i.e. a/b and c/d where a, b, c and d can be any integer values other than 0 and the task is to add these two fraction to generate their final sum.Fractions are represented by −a / b, where a is known as numerator and b is known as denominator.a and b can have any numeric values but b can have any numeric value other than 0.Sum of two fractions is represented as a / b + c / d, and the rule for adding the two terms is that their denominator must be ...

Read More

How to find a list of block devices information

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 18-Oct-2019 1K+ Views

lsblk command is used to display a list of information about all available block devices. However, it does not give a list of information about RAM disks. Examples of block devices are hard disk, flash drives, CD-ROM. This article explains about how to find a list of block devices in Linux Machine.To install lsblk for Fedora and CentOS ,use the following command –$ sudo yum install util-linux-ngTo install lsblk for Ubuntu and Linux Mint ,use the following command –$ sudo apt-get install util-linux -yTo find the default list of all blocks, use the following command –$ lsblkThe sample output should be like ...

Read More

Linux nslookup commands to troubleshoot dns domain name server

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 18-Oct-2019 454 Views

nslookup is a network administration command-line tool available for many computer operating systems for querying Domain Name System (DNS) to obtain domain name or IP address mapping or for any other specific DNS record. This article explains about nslookup command in detail. Nslookup can be run in two modes, Interactive and Non-Interactive. The Interactive mode is used to query DNS-Server about various domains and hosts. Non-Interactive mode is used to query about information of a domain or host.To find out Find out “A” record (IP address) of Domain, use the following command –$ sudo nslookup tutorialspoint.comThe sample output should be ...

Read More

How to use openssl for generating ssl certificates private keys and csrs

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 18-Oct-2019 5K+ Views

OpenSSL is a CLI (Command Line Tool) which can be used to secure the server to generate public key infrastructure (PKI) and HTTPS. This article helps you as a quick reference to understand OpenSSL commands which are very useful in common, and for everyday scenarios especially for system administrators.Certificate Signing Requests (CSRs)If we want to obtain SSL certificate from a certificate authority (CA), we must generate a certificate signing request (CSR). A CSR consists of mainly the public key of a key pair, and some additional information. Both these components are merged into the certificate whenever we are signing for ...

Read More

How to use date command in day to day practical usage

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 18-Oct-2019 327 Views

In this article, we will learn about the ‘date’ command in Linux and how to practically use the ‘date’ command in day-to-day usage with some practical examples. The ‘date’ command is used to print or to change the system date and time.General Syntax[root@localhost ~]# date [OPTION]... [+FORMAT] [root@localhost ~]# date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]The Date Command has the following UsagesWe can print date and time on the systemWe can display the date and time in the given format.We can read the date from the fileWe can display the Universal time.We can set the system date and time.Displaying the Date and Time from ...

Read More

How to make twitter bots in less than five minutes

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 18-Oct-2019 265 Views

Did you anytime notice about automatically answering questions posted on Twitter and you desire to make one for yourself? you can do it. We find, Twitter bots not only answering the questions, but it also shares its source. You can copy as well make your own little assistant.Twitter Bots DesignThe Twitter bots are designed for the purpose of Tweeting, retweeting and sharing varied Tweets. That’s not all, Twitter bots can not only follow a specific Twitter user, but it also can correct spelling mistakes depending upon the program specification.Google ScriptsIn the past, python program codes were used, but in recent ...

Read More

How to install guake drop down terminal terminal on ubuntu

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 18-Oct-2019 772 Views

Guake is a drop-down terminal for GNOME and any other desktop. It aims to provide a quick-access terminal, that show/hide on screen with a simple key pressing. Its style of window is based on an fps games, and one of its goals is being easy to reach. Guake is written mostly in python and has a little piece in C. This article explains about how to install Guake terminal on Ubuntu.FeaturesIt is a Lightweight terminalSimple Easy and ElegantSmooth integration of terminal into GUIIt Appears when you call and disappears once you are done by pressing a predefined hotkey (F12 by ...

Read More

How to secure apache with using lets encrypt an open source ssl provider

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 18-Oct-2019 261 Views

In this article, we will learn how to setup TLS/SSL certificates using the “Let’s Encrypt” on Ubuntu server with Apache as a web server, we shall also cover how to automate the certificate renewal using corn jobs.PrerequisitesTo complete this demo we needed to have the below requirementsAn Ubuntu server with a user with sudo permissions.Apache server installed on it with a proper domain name configured.Installing the Dependencies on ServerWe needed to update the server using the below command and install the git to get the Let’s Encrypt client from the repository.$ sudo apt-get update$ sudo apt-get install gitDownload the Let’s ...

Read More

How to configure and secure the server setup on centos 7

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 18-Oct-2019 599 Views

In this article, we will learn some configuration steps that should be taken care for security purpose and usability, just after a new server is installed. This will help us in building a solid foundation.Avoiding the ‘root’ user LoginThe root is the administrator or the super user in the Linux environment, who has all the privileges on the system. Generally, it is highly recommended to use the root user directly, as it may cause many issues or any accidental loss of data or due to any changes which may be done accidentally.In the next step, we will be setting up ...

Read More

How to install install mariadb 10 2 centos 7

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 18-Oct-2019 1K+ Views

In this article we shall learn about – how to install MariaDB 10.2 on Centos 7 / RHEL. This can be used as a guide for beginners or as a reference. Please note that, this can also be used as an alternative replacement of MySQL.Features of MariaDBMariaDB is an open-source and an alternative relational database management software.MariaDB is robust, fast and Scalable with rich storage engines.MariaDB has new features such as GIS and JSON.Server Information and PackagesThe Package included: MariadB, Mariadb-server, MariaDB-libs.The Daemon Name used is: mariadb.Port No: 3306.Configuration path: /etc/my.cnf.Installing Maria DB 10.2 on Centos 7 / RHEL 7In ...

Read More
Showing 55291–55300 of 61,248 articles
Advertisements