Useful Tricks in the Linux Shell

Useful Tricks in the Linux Shell

(Click the public account above to quickly follow) English: Techbar, Translation: Linux China/geekpi linux.cn/article-2389-1.html If you have good articles to submit, please click → here for details I regularly use the Linux shell (Bash), but I often forget some useful commands or shell tricks. Yes, I can remember some commands, but they definitely won’t be … Read more

Linux History Command

Linux History Command

Linux History Command 1. Overview In the Linux system, the <span>history</span> command is a tool used to view the history of commands executed by the current user. It can improve command operation efficiency, facilitate troubleshooting analysis, and enhance auditing capabilities. The Linux Shell (such as Bash) by default records the commands executed by the user … Read more

Linux History Command: How to Display the Date and Time of Command Execution

Linux History Command: How to Display the Date and Time of Command Execution

In Linux systems, the <span>history</span> command is a simple yet powerful tool that allows users to view and reuse previously executed commands. However, by default, the output of the <span>history</span> command only shows the command number and content, without including the date and time of command execution. This may not be intuitive enough for users … Read more

Why Python is Recommended as the First Programming Language on Linux Instead of Bash?

Why Python is Recommended as the First Programming Language on Linux Instead of Bash?

In China, there is a saying – “Since you are here, you might as well enjoy it!”Seeing beautiful scenery on TV, with green mountains and clear waters, and cascading waterfalls, one might impulsively drive to the destination. Upon arrival, they realize that it was the camera that was beautiful, not the scenery. But since they … Read more

Fixing Special Characters in Linux Scripts

Fixing Special Characters in Linux Scripts

The scripts required for this article can be directly copied in the format of this article: train_script.sh #!/bin/bash train=( " ____ " " _|____|____ " " | _________ | " " | _ _ | " " |_| |_| |_| " ) cols=$(tput cols) train_width=0 for line in "${train[@]}"; do (( ${#line} > train_width )) … Read more

Overview of Common Linux Commands

Overview of Common Linux Commands

Click the blue text above to follow us Overview This article discusses the relationship and role of the system kernel and the Bash interpreter, how to correctly execute Linux commands, and common troubleshooting methods. Experienced operations and maintenance personnel can appropriately combine commands and parameters to make Linux character commands more flexible while relatively reducing … Read more

Understanding Essential Systems for Machine Learning: Linux (With Common & Advanced Commands)

Understanding Essential Systems for Machine Learning: Linux (With Common & Advanced Commands)

Source: Machine Heart This article is 3208 words, and it is recommended to read it in 5 minutes. This article outlines the basic features of the Linux system and introduces some commonly used Linux commands to help you get started quickly. Linux has gained favor among many developers due to its stability and has become … Read more

Detailed Guide to Setting Up Crontab on OpenWrt Router

Detailed Guide to Setting Up Crontab on OpenWrt Router

Background Currently, many universities implement a one-device policy in dormitories, where each person must have their own internet connection, and only two devices are allowed to connect. This is said to be for better network management and to trace individual usage. However, it is quite absurd, as the internet fees are high, and usage is … Read more

Essential Skills for Linux Experts: A Comprehensive Guide to Environment Variables

Essential Skills for Linux Experts: A Comprehensive Guide to Environment Variables

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇 Join the 1000-person technical communication QQ group. Note: [Public Account] for faster approval 1. Basic Concepts Environment variables (environment variables) generally refer to parameters used to specify the operating environment of the operating system. For example: when we write C/C++ code, we never … Read more

Commonly Used Linux Commands You Will Always Need

Commonly Used Linux Commands You Will Always Need

Linux commands are used to manage the Linux system. For the Linux system, everything, including the CPU, memory, disk drives, keyboard, mouse, and users, is treated as a file. The commands for managing the Linux system are the core of its normal operation.Below are 166 of the most commonly used commands; there is bound to … Read more