Category: Linux

The ip Command – A Replacement for ifconfig

The ip command in Linux is similar to ifconfig, but more powerful and designed to replace it. With ip, you can easily perform network management tasks. ifconfig is deprecated from net-tools. The iproute2 suite provides enhanced commands.

How to Jump to a Specific Line in Vim

In edit mode, type

ngg or nG

where n is the specified line number (e.g., 25)

25gg or 25G jumps to line 25.

In command mode, enter the line number n
: n

To jump to a line immediately upon opening a file
vim +n FileName

View the current line number of the cursor
Ctrl+g …

How to Partition and Mount Data Disks on Linux

Applicable Systems: Linux (Redhat, CentOS, Debian, Ubuntu) * If your Linux cloud server data disk has not been partitioned and formatted, you can follow the steps below to perform partitioning and formatting. The following operations will divide the data disk into a single partition for use. This must be performed before installing the AMH panel …

Sendmail Service Configuration — Basics Guide

1. Sendmail service packages sendmail-8.13.8-2.el5.i386.rpm: The main program package for the Sendmail service; this package must be installed on the server side. sendmail-cf-8.13.8-2.el5.i386.rpm: Sendmail macro files package. sendmail-devel-8.13.8-2.el5.i386.rpm: Sendmail deve …

Simple Sendmail Configuration

Sendmail configuration is notoriously complex. Its configuration file, sendmail.cf, is located in the /etc/mail directory. Due to the cryptic and difficult-to-understand syntax of sendmail.cf, few people ever modify this file directly to configure a Sendmail server. Instead, we typically use the m4 macro processor to generate the required send …

How to Set Up a Sendmail Mail Server on Linux

Setting up a mail server on Linux is actually not that difficult. Let’s take Red Hat Linux 9.0 as an example. The available mail server suites on Linux include Sendmail and Qmail. Qmail places a strong emphasis on security; if you need a secure mail gateway, it is an excellent option; while …