Differences Between grep and pgrep in Linux

Differences Between grep and pgrep in Linux

<span>pgrep</span> and <span>grep</span> are two different commands in the Linux system. Although their names are similar, they have significant differences in functionality and usage scenarios. Here are their core differences: <span>pgrep</span> is an acronym that stands for “Process-ID Global Regular Expressions Print”. <span>grep</span> is an acronym for “Global Regular Expressions Print”, meaning global regular expression … Read more

Essential for Linux Beginners! The fuser Command: Easily Understand the Relationship Between Files and Processes

Essential for Linux Beginners! The fuser Command: Easily Understand the Relationship Between Files and Processes

In Linux systems, understanding the relationship between files and processes is a very important task. The fuser command allows you to see which processes are using a specific file, directory, or filesystem. Today, let’s learn about this super useful command—fuser.1. What is the fuser Command?The fuser command is used to display which processes are using … Read more

Installing and Configuring Redis 7.4.3 on Linux

Installing and Configuring Redis 7.4.3 on Linux

Supported Operating Systems:BigCloud Enterprise Linux For Euler 21.10 LTShttps://mirrors.cmecloud.cn/bclinux/oe21.10/openEuler 24.03 LTS SP1https://www.openeuler.org/en/download/CentOS-8, AlmaLinux, Rocky Linux, etc.1. Download the installation packageDownload link:https://download.redis.io/releases/redis-7.4.3.tar.gzUpload the installation package to the server in the /usr/local/src directory2. Upgrade GCC version# Redis source code compilation requires GCC version 5 or highergcc -v # Check GCC version# If GCC is already a high … Read more

Linux Not Recognizing Disk Expansion in VMware? Here’s How to Easily Solve It!

Linux Not Recognizing Disk Expansion in VMware? Here's How to Easily Solve It!

Problem Analysis Due to selecting standard partitioning instead of LVM (Logical Volume Management) when installing the system in VMware, the vgextend command cannot be used to dynamically extend the root partition (/). The created partition disk is sdax. At this point, entering the system and typing vgdisplay will yield no response, as there is currently … Read more

The Light of Open Source: The Birth and Rise of Linux

The Light of Open Source: The Birth and Rise of Linux

In the vast expanse of technology, there shines a brilliant star that illuminates every corner of the computer world with its open and free spirit: Linux. Today, let us delve into the story of Linux’s birth and growth, exploring the legend behind it. Origins: New Demands in the Context of the Times Looking back to … Read more

12 Methods to Find User Account Information and Login Details in Linux

12 Methods to Find User Account Information and Login Details in Linux

This article introduces practical methods for querying user information in Linux systems, focusing on command-line tools for obtaining user account details, login information, and user activity status. To create a new user, you can use the <span>useradd</span> command; to modify existing user attributes, you need to call the <span>usermod</span> command via the command line. The … Read more

RedHat Linux 8.1 Installation Guide

RedHat Linux 8.1 Installation Guide

RedHat Linux 8.1 Installation Guide This installation example is performed on a virtual machine. Virtual Machine System Information Virtual Machine Software: VMware® Workstation 16 Pro Version: 16.0.0 build-16894299 1.System Image Version rhel-8.1-x86_64-dvd.iso 1.Preparation of Local Network Environment 1.Start Installation – Create a New Virtual Machine 1.Select Custom Installation 1.Select Install Operating System Later 1.Select Linux … Read more

A Comprehensive Guide to Linux Kernel Core Dumps: From Basics to Practical Applications (Part 1)

A Comprehensive Guide to Linux Kernel Core Dumps: From Basics to Practical Applications (Part 1)

Hello everyone, welcome to <span>LiXin Embedded</span>. Today, we are going to discuss something hardcore—Linux kernel core dumps, commonly known as coredumps. This tool is a lifesaver when debugging program crashes, especially in embedded development where device resources are limited and issues are deeply hidden. Coredumps can help you quickly locate the root cause of problems. … Read more

Statistical Study of High-Frequency Attack Surfaces and Vulnerability Types in the Linux Kernel

Statistical Study of High-Frequency Attack Surfaces and Vulnerability Types in the Linux Kernel

Collected and organized all Linux kernel vulnerabilities from January 1, 2022, to February 18, 2023, with data sourced from NVD, totaling 314 vulnerabilities. The analysis of the Linux kernel attack surface is based on CWE types and the subsystems where the vulnerabilities are located. CWE Statistics According to publicly available CVE information, a total of … Read more

Concurrency and Race Conditions in Linux

Concurrency and Race Conditions in Linux

Tip: For a better reading experience, it is recommended to read on a PC! 1 What are Concurrency and Race Conditions In Linux systems, concurrency refers to the situation where multiple execution units (processes, threads, interrupts, etc.) access shared resources simultaneously or alternately, while a race condition refers to the uncertain behavior or errors caused … Read more