[Comprehensive explanation of Linux commands] 116.umount command: a practical tool for unloading a loaded file system

Article directory umount Additional information grammar Options parameter Example Learn `python` from scratch umount Used to unmount a mounted file system Supplementary instructions The umount command is used to unmount a mounted file system. You can umount the file system using the device name or mount point, but it is best to unmount it through […]

[Comprehensive explanation of Linux commands] 121. Practical tips for using the dd command to copy and convert files

Article directory dd Additional information grammar Options Example Generate random string Learn `python` from scratch dd The dd command is used to copy files and convert and format the contents of the original files. Supplementary instructions The dd command is used to copy files and convert and format the contents of the original files. The […]

[Comprehensive explanation of Linux commands] 124.e2fsck: Tool for checking and repairing the second extended file system

Article directory e2fsck grammar Options parameter Example Learn `python` from scratch e2fsck e2fsck is used to check the integrity of the second extended file system and try to fix errors with the appropriate options. The returned value after execution and its representative meaning are as follows: 0 No errors occurred. 1 A file system error […]

Using g++ and Makefile to compile C language programs based on Linux (Ubuntu) system

Using g++ and Makefile to compile C language programs based on Linux (Ubuntu) system Preface 1. Install Ubuntu Introduction to Ubuntu Ubuntu installation steps After installation, enter the system 2. Compile using g++ Install g++ Write a program and compile and run it The difference between g++ and gcc Experimental case Experimental requirements experiment one […]

Batch summary of nmon result file Excel data

1. Reason After using nmon to monitor server resources, dozens of result files were generated because there were many servers. Now we need to count the average and maximum value information of CPU, memory, disk, etc. in each file. There are too many tables, so I wrote a Python script. I may use it in […]

Deployment description file preparation for deployment services in k8s cluster

Microservice deployment description file Deploy.yaml 1. Create deployment description files for each microservice 1.1 mall-auth-server — apiVersion: apps/v1 Kind: Deployment metadata: name: mall-auth-server namespace: sangomall labels: app: mall-auth-server spec: replicas: 1 selector: matchLabels: app: mall-auth-server template: metadata: labels: app: mall-auth-server spec: containers: – name: mall-auth-server image: $REGISTRY/$DOCKERHUB_NAMESPACE/$PROJECT_NAME:latest imagePullPolicy: Always ports: – name: tcp-30000 containerPort: 30000 […]

Use byte streams to achieve file cutting, file merging, and file copying (three types)

File splitting and merging Implement file separation (cutting) Implement file merging File copy Realize file separation (cutting) package com.IO; import java.io.*; import java.util.Arrays; /** * Realize file separation [cutting] * Implement file merger */ public class FileCutter02 {<!– –> public static void main(String[] args) throws IOException {<!– –> File file = new File(“d:/music.flac”); // File […]