Simulation and implementation of simple Shell under Linux
Simulation and implementation of simple Shell under Linux
Full code: https://github.com/JiaZhengJingXianSheng/Linux_Shell
1, fork
Fork system call is used to create a new process, called a child process, which runs simultaneously with the process (called the process of system call fork). This process is called the parent process. After creat ...
Added by n1tr0b on Tue, 22 Feb 2022 13:21:43 +0200
This paper explains the installation and application of Megahit, a macrogenome assembly tool
main points
Megahit introduction Basic assembly principle of Megahit Installation and use of Megahit Megahit actual combat
hello, hello everyone. Today we bring you a super detailed installation and application tutorial about Megahit, a macro genome assembly tool.
We will continue to bring you a series of articles on the analysis o ...
Added by daarius on Tue, 22 Feb 2022 08:18:12 +0200
lsof command of Linux
[quick reference manual of Linux common commands] pay attention to [entry station], and the background replies to "1001" for self access.lsof (list open files) is a tool to view the current system files. In the linux environment, everything exists in the form of files. Through files, you can access not only conventional data, but also ...
Added by gavinbsocom on Tue, 22 Feb 2022 08:07:27 +0200
WinPcap handles offline heap files
1, Foreword
Through the previous study, we are familiar with capturing packets from the network card. Now we will learn how to process packets. WinPcap provides us with many API s to save packets flowing through the network to a heap file and read the contents of the heap. The format of this file is very simple, but it contains the binary cont ...
Added by jinwu on Tue, 22 Feb 2022 05:33:49 +0200
c++webserver/Chapter III Linux Thread Development
1. Threads
1. Definition
Similar to a process, threads are a mechanism that allows applications to perform multiple tasks concurrently. ** A process can contain multiple threads. ** All threads in the same program execute the same program independently and share the same global memory area, including initialized, uninitialized, and hea ...
Added by sheila on Mon, 21 Feb 2022 19:22:04 +0200
Nezha D1 runs Arch Linux RISC-V rootfs through TF Card
Nezha D1 runs Arch Linux RISC-V rootfs through TF Card
Make Debian RISC-V TF startup card of RVBoards
For details, please refer to here: "RVBoards Nezha" D1 Debian system image and installation methodAdd the pits that are not mentioned here
according to The kernel cannot access and mount rootfs Introduction here
[ 9.015501] ...
Added by evanluke on Mon, 21 Feb 2022 16:41:53 +0200
awk report generator for Linux text processing three swordsmen
catalogue
1, awk
1. General
2. Working principle:
3.awk built in variables
4. Other built-in variables
2, Examples
awk operation:
Fuzzy matching:
Comparison between numeric value and string:
Logical operation & & and |:
3, Advanced usage of awk
1. Define reference variables
2. Conditional statements
4, Other examples
...
Added by ploppy on Mon, 21 Feb 2022 15:49:31 +0200
Linux environment intrusion emergency and troubleshooting
1, Account security
1. User information file / etc/passwd
# Format: account:password:UID:GID:GECOS:directory:shell
# User name: Password: user ID: group ID: user description: Home Directory: shell after login
root:x:0:0:root:/root:/bin/bash
# View logged in users:
cat /etc/passwd | grep /bin/bash
# View users with UID=0
awk -F: '$3==0{print ...
Added by pkallberg21 on Mon, 21 Feb 2022 10:52:15 +0200
#Basic management of Linux storage
1, Equipment identification
After the equipment is connected to the system, it exists in the form of files
Equipment file name:
SATA/SAS/USB /dev/sda,/dev/sdb
#s means SATA or SAS or USB,; d is hard DISK; a represents the first block, b represents the second block
/dev/sda1 express SATA The first partition of the first hard d ...
Added by T_Hayden on Mon, 21 Feb 2022 09:46:00 +0200
Compile the static file system test tool [FIO] and run it in QEMU
Compiling static file system testing tools can test your file system in QEMU environment without worrying about machine crash ðŸ¤ï¼Œ For how to build a kernel development environment, please refer to the front article of the blogger: Running with VSCode + QEMU can visualize the Debug NOVA file system.
Today is the static compilation of ...
Added by jambroo on Mon, 21 Feb 2022 08:45:04 +0200