7 minutes to learn how to use anonymous pipe() (complete code test attached)

1, To create an anonymous pipe: #include <unistd.h> int pipe(int pipefd[2]); Function: create an anonymous pipeline for inter process communication; Parameter: int pipefd[2] this array is an outgoing parameter; pipefd[0] corresponds to the reading end of the pipeline; pipefd[1] corresponds to the write end of the pipeline; Return va ...

Posted by casty on Fri, 04 Mar 2022 20:09:05 +0100

Anaconda installation and use

Anaconda installation 1.1 download installation files 1) If you want to download directly to the local server and upload to the remote server through ftp, please ignore the following operations 2) If the server is networked, you can directly download the server through wget command [centos version], as follows: The linux system I use is cen ...

Posted by hiasl on Tue, 08 Feb 2022 22:58:35 +0100

Linux jq and vim (notes)

1, jq zcat client_log_20211226/*.gz | head -n 10000 | jq .event | sort | uniq -c jq is a lightweight json processing command. json data can be sliced, filtered, mapped and transformed jq . Format and output json data Common options -c compact output json data-s reads all inputs into an array-r outputs the original string instead of a ...

Posted by AjBaz100 on Fri, 21 Jan 2022 08:03:28 +0100

Building Vim from source code

Building Vim from source code introduction The thing is like this, because I'm a heavy user of Vim.. However, the version that can be installed or comes with on most systems is an older version, possibly 7.0 X or something. Or you need to use some features or functions of Vim, but the program built for you by others is not enabled, which is ...

Posted by sub7av on Thu, 20 Jan 2022 07:52:05 +0100

[Linux] deeply understand Shell usage, from getting started to mastering

I Shell background 1.1 GNU plan Tips: The GNU Project is a free software, mass collaboration project that Richard Stallman announced on September 27, 1983. Its goal is to give computer users freedom and control in their use of their computers and computing devices by collaboratively developing and publishing software that gives everyon ...

Posted by John_wilson on Thu, 20 Jan 2022 01:28:05 +0100

Compile link, static library, dynamic library, gdb

Vim vim filename When on, it is command mode. // filename is opened when it exists, and created and opened when it does not exist gg Is to go directly to the top of the file content, shift + g Directly to the bottom of the file. dd Delete the line where the cursor is located 3dd Delete the line where the cursor is located and the follow ...

Posted by jestercobblepot on Fri, 24 Dec 2021 02:03:28 +0100

Linux learning -- disk quota, VDO virtual data optimization

Linux learning – disk quota, VDO, virtual data optimization Disk capacity quota Soft limit: when the soft limit is reached, the user will be prompted. When the user is still allowed to continue to use within the limited limit Hard limit: when the hard limit is reached, the user will be prompted and the user's operation will be forcibly ...

Posted by netbros on Tue, 19 Oct 2021 22:51:12 +0200

[Arch]Archlinux basic installation - UEFI mode

Check whether the motherboard is in UEFI mode ls /sys/firmware/efi/efivars Connect network dhcpcd Test whether the connection is successful ping baidu.com Ensure that the system time is accurate timedatectl set-ntp true View hard disk partitions fdisk -l Hard disk partition Partition using cfdisk tool cfdisk /dev/sda After ent ...

Posted by alpine on Tue, 21 Sep 2021 22:01:12 +0200

CentOS7 installation configuration mongodb3.2

1. Download Dependent Packages yum -y install wget 2. Create a file directory mkdir -p /app/install mkdir–p /app/data/mongodb mkdir–p /app/log/mongodb 3. Download mongodb cd /app/install wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.2.16.tgz tar zxvf mongodb-linux-x86_64-3.2.16 ...

Posted by Collin on Mon, 20 Jul 2020 18:21:42 +0200

Solving Chinese Scrambling Problem of mysql+python on mac Platform

First, for mysql databases, the default character is latin1 This latin1 is the culprit that we can't write in Chinese.The solution, then, is to change the character set to UTF-8 The easiest way to do this is to modify the windowMy.iniProfile),My.iniWhere and how to modify it to UTF-8 is as follows: https://www.cnblogs.com/Ray-xujianguo/p/332 ...

Posted by htcilt on Sun, 12 Jul 2020 17:34:44 +0200