Category: Linux

How to Check Current Time in Linux

How to Check and Change Linux Timezone1. Check current timezoneCommand: "date -R"2. Methods to change Linux server timezoneMethod ACommand: "tzselect"Method B For RedHat Linux and CentOS onlyCommand: "timeconfig"Method C For DebianCommand: "dpkg-reconf …

Complete Guide to Common Linux Commands

System Information
arch Display the machine’s processor architecture (1)
uname -m Display the machine’s processor architecture (2)
uname -r Display the kernel version currently in use
dmidecode -q Display hardware system components – (SMBIOS / DMI)
hdparm -i /dev/hda List the architectural characteristics of a disk
h …

How to Upgrade MySQL on Debian and Ubuntu

One of the daily tasks of a system administrator is upgrading services, applying patches, or adding some fancy new features. In early 2013, the latest MySQL 5.6 was released, aiming to deliver better performance and scalability. If you’re a bit interested, you can check out my article on how to Deb …

A Guide to Linux init.d and rc.d: Understanding the Runtime Process

What Are the Steps Involved in a Linux Boot Process? This article details the role of different runlevels during startup.
For advanced users coming from DOS/Win9x/NT platforms, Linux might seem like a strange beast. There’s no config.sys, no autoexec.bat, and those personalized machine configurations you’re used to are nowhere to be found …

Linux mpstat Command 鈥?Report Processor Statistics

Today’s computers typically use multi-processor or quad-core single-processor configurations. On the server side, more processors or cores mean greater capability, but on the other hand, applications also require higher energy consumption. You may also have encountered a scenario where your CPU utilization is high, yet you feel…

Linux User Access Authorization

Starting today, the platform has officially been migrated to Linux—finally marking a new beginning. Although it came a bit late, I’m still very happy. Moving the platform over has been a long-held aspiration of mine throughout my time in the computer field. I’ve always been optimistic about Linux’s prospects, and as expected, over the years it has…

10 Most Dangerous Commands You Should Never Run on Linux

The Linux command line is useful, efficient, and fun, but it can also be dangerous at times, especially when you’re not sure what you’re doing. This article is not intended to stir up anger towards Linux or the Linux command line. We just want to make you aware that when running certain commands, you should …

How to Check File and Folder Sizes in Linux

When disk usage exceeds standard thresholds, an alert will be triggered. Knowing how to use the df and du commands is a wise choice in such situations.
df can display the size of first-level folders, usage ratio, file system, and their mount points, but it is powerless when it comes to individual files.
du can show the size of both files and folders.
The two …

Linux Sed Command: A Complete Guide

Java Code 1. Introduction to Sed sed is a stream editor that processes content one line at a time. During processing, it stores the current line in a temporary buffer called the “pattern space,” then uses sed commands to process the content in the buffer. Once processing is complete, it sends the buffer’s …

Analysis of a Linux Periodic Auto-Backup Script

In our network maintenance work, we often need to back up data. While the task is not complicated, it is quite time-consuming. Here I share a Linux backup script that easily achieves automatic backups and can retain backup archives for N days. This script consists of two files: an executable file backup.sh, and …