Concise file operation under Linux Linux

1 lseek function Function: off_t lseek(int fd, off_t offset, int whence) Header file: #include < unistd h> #include <sys/types. h> Parameter: fd file descriptor Offset offset, which can be positive or negative The starting position of the where offset can be set in three ways SEEK_SET #Start position The file offset ...

Added by StefanRSA on Thu, 20 Jan 2022 00:55:23 +0200

Learning Linux common instructions (Part 1): file processing instructions

Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it preface Environment and related software: VMWare 14, CentOS 7, SecureCRT. Tip: the following is the main content of this article. The following cases can be used for reference 1, Vie ...

Added by inVINCEable on Wed, 19 Jan 2022 16:20:37 +0200

Linux text three swordsmen three sharp weapons grep, sed, awk

brief introduction Awk, grep and sed are the three sharp tools of linux operating text, collectively known as the three swordsmen of text. They are also one of the linux commands that must be mastered. The functions of the three are text processing, but the focus is different. Awk is the most powerful but also the most complex. Grep is more su ...

Added by doofystyle on Wed, 19 Jan 2022 15:26:53 +0200

The story of love between sperm cells and egg cells -- a detailed explanation of Redis distributed lock (illustrated, hand-in-hand building service, detailed code explanation, recommended Collection)

This article involves many related articles. Please take it yourself if necessary (follow the blogger, let's go to big factory happy) VMware installation of CentOS (nanny tutorial, recommended Collection) VMware+CentOS 7 static IP setting method - Nanny level tutorial, recommended collection CentOS 7 turn off firewall CentOS installation ...

Added by kidestranged on Wed, 19 Jan 2022 11:21:18 +0200

Linux kernel learning 9 -- an example of kernel multitasking concurrency

Next section https://blog.csdn.net/weixin_45730790/article/details/122521234 In order to simulate multitasking concurrent access to shared linked lists in the kernel, we need to complete the following tasks. First, we need to establish a shared list in the kernel and use the spin lock structure to protect its accessSeveral kernel threads are ...

Added by Buffas on Tue, 18 Jan 2022 21:31:59 +0200

day25 RAID of disk array

1, RAID introduction RAID(Redundant Array of Independent Disk) technology was proposed by the University of California, Berkeley in 1987. It was originally developed to combine small cheap disks to replace large expensive disks, and hope that the access to data will not be lost when the disk fails. RAID is a redundant array composed of multipl ...

Added by vtroubled on Tue, 18 Jan 2022 14:58:22 +0200

Nginx optimization | CSDN creation punch in

Most of the nginx installation guides tell you the following Basics - install through apt get, modify a few lines of configuration here or there, and well, you already have a Web server! Moreover, in most cases, a regular installation of nginx already works well for your website. However, if you really want to squeeze out the performance of ngi ...

Added by molave on Tue, 18 Jan 2022 08:09:24 +0200

odoo Part II Chapter II actions

Reprint: http://book.odoomommy.com/chapter2/README2.html Chapter II action Actions in odoo refer to a series of click operations corresponding to different application scenarios. The most common is act_ The window action, such as opening the form view, tree view and search view, is act_window action. The actions in odoo can be divided into th ...

Added by barkster on Tue, 18 Jan 2022 05:19:46 +0200

Linux driver

Linux driver 1. Classification of linux drivers Character driven device: the transmission process of IO is based on characters without buffer. For example, I2C and SPI are character devices Block device driver: the transmission process of IO is in blocks. Root storage is related to block devices, such as tf cards Network device driver: acc ...

Added by nicolam1 on Tue, 18 Jan 2022 02:18:36 +0200

shell concise tutorial

**Read only variable * * readonly var **Delete variable * * unset var Variable type: Local variables are defined in scripts or commands and are only valid in the current shell instance Environment variable a variable that can be accessed by all programs Shell variable is a variable specially set by the shell program Single quotatio ...

Added by partypete on Mon, 17 Jan 2022 19:21:45 +0200