Common Linux Commands for Scientific Computing

Common Linux Commands for Scientific Computing

When performing calculations on a Linux system, we often encounter the use of Linux shell commands. Below is a summary of commonly used Linux shell commands and shell script task submission cases that I have compiled during my calculations. I hope this is helpful to readers. Shell: Introduction to VIM Editor Usage Introduction to Linux … Read more

10 Things You Can Do When Your Linux Server Disk is Full, Beyond rm -rf

10 Things You Can Do When Your Linux Server Disk is Full, Beyond rm -rf

At three in the morning, my phone alarm shattered the night. The screen glaringly displayed: “Production environment server disk usage at 95%”. My heart skipped a beat as I trembled to connect to the VPN and typed df -h, confirming that terrifying red warning. My instinctive reaction was to delete some seemingly unimportant log files … Read more

Getting Started in 30 Minutes: Practical Disk Management on Linux Servers (Including Partitioning, Formatting, and Mounting Tutorials)

Question 0: Disk Structure Hard disks are divided into sectors (each sector is 512b or 4kb). The first sector records: the starting sector number of the partition, the ending sector number of the partition, the type of partition (linux/swap), and the status of the partition (whether it is bootable). Question 1: How are disks partitioned … Read more

Getting Started in 30 Minutes: Practical Disk Management on Linux Servers (Including Partitioning, Formatting, and Mounting Tutorials)

Question 0: Disk Structure The hard disk is divided into sectors (each sector is 512b or 4kb). The first sector records: the starting sector number of the partition, the ending sector number of the partition, the type of partition (linux/swap), and the status of the partition (whether it is bootable). Question 1: How are disks … Read more

Linux Basic Practice Multiple Choice Questions – 16

76. Question: Which command would you use in Linux to monitor I/O statistics and disk activity in real-time? Option 1: iostat Option 2: top Option 3: df Option 4: du Correct Answer: 1 Explanation: To monitor I/O statistics and disk activity in real-time on Linux, you would use the iostat command. It provides detailed information … Read more

Expanding the Linux LVM File Management System

The Linux system typically has a root directory capacity of around 50G with the default installation, which is not suitable for the installation and use of large engineering software. The installation method for physical Linux systems is now very convenient, but there are very few cases of expansion operations. The method used in practice is … Read more

A Lesson Learned: You Can No Longer Allocate Just a Few GB for the /var Partition in Production Linux Environments!

A Lesson Learned: You Can No Longer Allocate Just a Few GB for the /var Partition in Production Linux Environments!

In the late hours of operations, the worst fear is a disk alert. The culprit is often the underestimated /var partition. Many Linux beginners, and even some veterans, make the same mistake during system installation: underestimating the importance of the <span>/var</span> partition and only allocating a few GB of space by default. The result is … Read more

A Comprehensive Guide to Disk and Partition Management in Linux Systems, Covering Core Operations like Viewing, Managing, and Optimizing

A Comprehensive Guide to Disk and Partition Management in Linux Systems, Covering Core Operations like Viewing, Managing, and Optimizing

1. Viewing Basic Disk Information 1. List All Disk Devices lsblk # Tree view of disks and partitions lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINT # Custom columns sudo fdisk -l # Detailed partition table information (requires root) Example Output: NAME SIZE FSTYPE MOUNTPOINT sda 100G ├─sda1 512M vfat /boot └─sda2 99.5G ext4 / nvme0n1 500G ├─nvme0n1p1 100G ext4 … Read more

Expanding and Migrating a Linux System

Expanding and Migrating a Linux System

Problem Environment: System: Linux-Debian, Boot Method: BIOS MBR. Initially, only 50GB was selected as the system disk during installation. After six months, storage is insufficient, and the system needs to be expanded to 100GB. Root Terminal Command Line Operations Execute the <span>fdisk -l</span> command to view the disk partition information in the system. root@Debian:~# fdisk … Read more