Category: Linux

website backup lftp

How to do website backup using lftp

This article is about using the lftp command line for backup of website data. Of course, if you are backing up data to another VPS or server, rsync backup is recommended, but if you...

useful Linux commands

Top 10 most useful Linux commands

In this post, I list some of the most basic but most useful Linux commands for Linux novices. You can type these commands to manage your server. These commands are the easiest for beginners...

delete expired files Linux

How to delete regularly expired files in Linux

When managing files under Linux, we usually have the need to periodically delete expired files. For example, periodically delete log files that exceed a specified time. Otherwise, the longer it takes, the more space...

change MySQL password

How to change MySQL password

Changing the MySQL password often needed to manage web servers. The MySQL administrator account is root by default, and the password is blank. mysqladmin command to change the root password If you have never...

404 page Nginx

How to custom 404 page on Nginx

Customizing the nginx 404 error page is a detail to improve the user experience. You can set the error page for each site separately, or you can set a global 404 page. To custom...

Nginx download

How to create 301 redirect on Nginx & Apache

Sometimes we need to do a 301 redirect on the Apache or Nginx server to direct the old page to the new page, or to move to the preferred domain name. Apache 301 redirect...

secure SSH

How to configure secure SSH in Linux

This article will explain how to modify the default settings of sshd to ensure that sshd is secure and restricted to protect your server from hackers. You need to restart sshd every time you...

deleting Linux directories

[Linux basic] Creating and deleting Linux directories

mkdir command The mkdir used to create one or more directories Example: Create directory: mkdir ddos The above command will create the directory ‘ddos’. Create a directory and set access permissions: mkdir -m 777...

use vi editor Linux

How to use the vi editor in Linux

The vi editor is a standard editor for all Unix and Linux systems. Its power is not inferior to any latest text editor. Here is a brief introduction to its usage and a small...