How to Rsync with non-standard SSH Port Run the following command from the terminal to sync files/folders using Rsync with non-standard ssh port. Syntax: # rsync -arvz -e ‘ssh -p <port-number>’ –progress –delete user@remote-server:/path/to/remote/folder /path/to/local/folder For the purpose of this tutorial, I will be using two systems. Remote System Details: IP Address: 192.168.1.103 User name: […]
Procedure To Add a Swap File Under Linux
You need to use the dd command to create swap file. The mkswap command is used to set up a Linux swap area on a device or in a file. Step 1 – Login as the Root User Open a terminal window (select Applications > Accessories > Terminal) or login to remote server using the ssh client. Switch to […]
How to enable BBR on AlmaLinux 8
Requirements: BBR requires Linux kernel version 4.9 or above. Since AlmaLinux 8 comes with the 4.18.0 kernel, we can enable BBR right away. Run the following command to check available congestion control algorithms, Output: Run the below command to check the current congestion control algorithm used in your system, Output: Enabling TCP BBR in AlmaLinux […]
Replace a single string in a large number of files in Unix
If you have Perl installed on your system With Perl, you can make the replacement from the Unix command line prompt. At the prompt, enter: perl -pi -e ‘s/old_string/new_string/g’ file_pattern Replace old_string with the string you want to replace and new_string with the replacement string. Replace file_pattern with the files you want to modify. This can be a shell wildcard, such as *.html. The […]
Sysctl optimization
You can find a lot of optimization tips for Linux kernel configuration over the Internet, but not all of them are explained well. Here is our optimization setup for your attention. We will go step by step to have some explanation on what we’re going to do and optimize. All these configuration lines are being […]
Install Cyberpanel
This guide will walk you through how to install the self-hosted CyberPanel control panel on your server, which is independent of [CyberPanel Cloud](https://cloud.cyberpanel.net/). Requirements Server with a fresh install of Centos 7.x, Centos 8.x, Ubuntu 18.04, Ubuntu 20.04, AlmaLinux 8 Python 3.x 1024MB RAM, or higher 10GB Disk Space CyberPanel vs CyberPanel Ent CyberPanel is […]