11 Essential Performance Analysis Tools for Linux

11 Essential Performance Analysis Tools for Linux

Click the top “LinuxLearn This Way” to follow, star, or pin it for the latest updates. First delivery guaranteed. Editor: Linux Sister | Source: Linux Should Be Learned This Way Link: https://bbs.huaweicloud.com/blogs/421580 Previous post: The efficient log printing tool we’ve used for two years is really amazing! Hello everyone, I’m Linux Sister. Command Summary: <span>uptime</span> … Read more

How to Set Process Priority in Linux

How to Set Process Priority in Linux

1. Introduction The previous article discussed how to check process priority; this one explains how to set process priority. There are two methods for setting process priority: Command line; Source code; 2. Command Line Method main.c: #include <stdio.h> int main(int argc, char *argv[]) { while(1) { ; } return 0; } Compile: gcc -o proc-pri … Read more

Linux File Search Tools: Locate vs Find

Linux File Search Tools: Locate vs Find

1. Locate 1. Performance Overview Queries the pre-built file index database on the system /var/lib/mlocate/mlocate.db Note: If this file is deleted, locate will not work. You need to manually update the database (updatedb) or restart the system for locate to function again. Relies on a pre-built index: The index is constructed automatically during idle times … Read more

Understanding the Linux Top Command

Understanding the Linux Top Command

<span>top</span> is a very powerful real-time system monitoring tool in Linux that allows you to dynamically view the system’s operating status, including the usage of resources such as CPU, memory, and processes. 1. Starting top To start top, simply enter the following command in the terminal: top 2. Overview of the top Interface The top … Read more

Linux Commands for Managing Files and Directories

Linux Commands for Managing Files and Directories

Linux Commands for Managing Files and Directories pwd——Prints the current path of the user, print work directory, used in text mode cd——Changes the current directory, change directory Format: cd <directory_name> [root@localhost~]# cd.. Go back to the parent directory [root@localhost~]# cd Go to the user’s home directory [root@localhost~]# cd/home Switch to the home directory using the … Read more

Main Types of Linux Commands

Main Types of Linux Commands

Introduction Linux commands are essential tools for operating the Linux system. They can be categorized into several types, each containing a series of related commands used to perform specific system, file, or network operations. Whether managing the CPU, memory, disk drives, keyboard, mouse, or user management, Linux commands are indispensable.. Components of Linux Commands Linux … Read more

How to Determine if Your Linux System is CentOS 7.9

How to Determine if Your Linux System is CentOS 7.9

1. Check /etc/redhat-release cat /etc/redhat-release Output: CentOS Linux release 7.9.2009 (Core) 2. Check /etc/os-release cat /etc/os-release Output: NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7" Note: If it is CentOS 7.9, VERSION_ID=”7″ will show the major version number as 7, while PRETTY_NAME will … Read more

How to Delete Symbolic Links in Linux

How to Delete Symbolic Links in Linux

In Linux systems, symbolic links (Symbolic Link, abbreviated as Symlink) are a very practical type of file system object, similar to shortcuts in Windows systems. Symbolic links can point to files or directories, providing users with convenient access paths. However, sometimes we may need to delete symbolic links that are no longer needed. This article … Read more

Getting Started with HTTP Requests Using Httpie in Python

Getting Started with HTTP Requests Using Httpie in Python

Master HTTP Requests with Python: Easy Introduction to Httpie 🚀 Today, I want to introduce you to an HTTP tool library that I frequently use in my daily development — httpie. As a Python developer, we often need to debug API interfaces and test HTTP requests. While GUI tools like Postman are powerful, sometimes it’s … Read more