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 […]
Tag: file
[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 […]
lv4 embedded development-7 file IO (concept, open, close, read, write)
Table of Contents 1 Introduction to file I/O 2 File I/O – File Descriptor fd (File Descriptor) 3 File I/O – open 4 File I/O – close 5 File I/O – read 6 File I/O – write 7 File IO – lseek 8 Standard I/O – Thoughts and Practice Understand the meaning of file descriptors […]
Java is used to eliminate the inaccuracy of using suffix names to determine file types.
Used to exclude inaccurate file type determination using suffix names Usually, in WEB systems, file type verification needs to be done when uploading files. There are roughly the following methods: Through the suffix name, such as exe, jpg, bmp, rar, zip, etc. Judge by reading the file and getting the Content-type of the file. By […]
[Java] Using Tabula technology to extract data from tables in PDF files
One day, the project team came up with a request that the data in the PDF file needed to be extracted for data precipitation. This was because the third-party system did not provide a data interface, so this was the only solution. As far as I know, there are currently 3 solutions for data extraction […]
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 […]