Category: Linux

How to Check Network Card Bandwidth and Traffic in Linux

On Windows systems, we can use the networking status in Task Manager to check bandwidth usage. So how do we view the host’s bandwidth usage on Linux?

In fact, there are many ways to check network interface traffic on Linux. Below, we’ll use the iptraf software as an example to explain: …

How to Use Screen in Linux

How to Use Screen: SSH Remote Session Management Tool

I. What Is the Screen Command? Screen is a full-screen window manager that multiplexes a physical terminal between several processes. Screen has the concept of sessions, where users can create multiple screen windows within a single screen session, in …

How to Add Exception Ports in Linux Firewall

Below, we’ll use CentOS as an example:

Step 1: Use the local machine or connect to the CentOS system via SSH. Enter the command “/sbin/iptables -I INPUT -p tcp –dport 3306 -j ACCEPT” and confirm (using port 3306 as an example here).

Step 2: Use “/etc/init.d/iptables status& …

How to Check Linux and CentOS Version

You can use the following command to check:
# lsb_release -aLSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: CentOSDescription: CentOS release 5.4 (Final)Release: …

How to Enable and Disable Ping on CentOS

Environment: CentOS 5, 7

Before disabling, you can test with:
ping 192.168.241.2 #replace IP with your own
Disable ping (temporary, suitable when rebooting the host is inconvenient)
The command is as follows (takes effect immediately, invalid after reboot):
echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all …

How to Configure Network Interfaces in Linux

First use ifconfig -a to check which interface is in use. Below we’ll use eth0 as an example to configure eth0 as follows:#Edit: vi /etc/sysconfig/network-scripts/ifcfg-eth0Content DEVICE=eth0 BOOTPROTO=static BROADCAST=192.168.1.255 IPADDR=192.168.1.25 NETM …

How to Check Disk Space Usage in Linux

This article explains in detail the usage of the du command parameters in Linux, with examples to further illustrate how to use it. The du command function description: counts the disk space size occupied by directories (or files).

Syntax: du [-abcDhHklmsSx] [-L <symbolic link>][-X <file>][–block-size][–excl …