How to sort du -h command based on file size

In the GNU Coreutils package> = 7.5, command sort Provides the -h parameter which allows easy reading of numbers of this size (eg 10K 15M 1G etc.). Helps compare and shorten “du -h” results. du -h * | sort -h The above results will appear in descending order. You can …

Read More »

How to configure a firewall with FirewallD on CentOS 7

Firewall services

A properly configured firewall is one of the most important aspects of system security overall. FirewallD is a complete firewall solution for managing iptables rule system and provides D-Bus interface to run. Starting with CentOS 7, FirewallD has replaced iptables as the default firewall management tool. In this tutorial, we’ll …

Read More »

How to change permissions for folders and subfolders

Setting the appropriate file permissions for any web application is a vital part of web hosting. In this tutorial, you will learn how to frequently change file permissions on folders and subfolders in one command. As we know, in Linux everything is treated as a. Folders are also known as …

Read More »

How to configure Nginx Server Block on CentOS 7

CentOS Server

Server Blocks Nginx allows you to run more than one website on a single server. With Server Blocks, you can define the root of the site document (the directory that contains the website files), create separate security policies for each site, use a different SSL certificate for each site and …

Read More »

Basic commands for managing Nginx services

Error outputting nginx configuration

Pronounced “engine x”, Nginx is the best free, open source, and high-performance reverse proxy server program responsible for handling the loads of some of the largest sites on the Internet. Nginx can be used as both a standalone web server and a reverse proxy for Apache and other web servers. …

Read More »

How to install and configure VNC on CentOS 7

Fennec putty

This guide covers the steps required to install and configure a VNC server on a CentOS 7 system. We will also show you how to securely connect to a VNC server via an SSH tunnel. Virtual Network Computing (VNC) is a graphical desktop sharing system that allows you to use …

Read More »

How to quickly create swap files on Linux

Swap is the space on the disk that is used when the physical RAM is full. When the Linux system runs out of RAM, the inactive pages are moved from the RAM to switching space. Swap space can take the form of a private swap partition or swap file. In …

Read More »

How to install and configure Ruby on CentOS 7

Install Ruby and Repnf

Ruby is one of the most popular languages ​​today. Ruby has neat syntax and is the language behind Ruby on Rails’s powerful framework. In this tutorial we’ll show you three different ways to install Ruby on CentOS. Each of them has its own benefits, you can choose the installation method …

Read More »

How to terminate programs on Linux using the kill command

Have you ever encountered a situation where you launch an app and suddenly while using the app it becomes unresponsive and crashes all of a sudden? Then you try to start the app again, but nothing happens because the original app’s process doesn’t actually stop completely. Yes, this happened to …

Read More »

How to install and configure MongoDB on CentOS 7

How to set or change time zone in CentOS 8

MongoDB is a free and open source document database. MongoDB belongs to the NoSQL database family, which differs from traditional table-based SQL databases like MySQL and PostgreSQL. In MongoDB, data is stored in flexible documents, such as JSON where fields can vary from document to document. Databases do not require …

Read More »