📄 test1.c
字号:
#include <stdio.h>int main(int argc, char **argv){ // step 1, get commands from user input. // step 2, parse command and get all commands // step 2.5, create a pipe // step 3, fork // step 3.1, ls process close stdout, and write output to pipe // step 3.2, grep process close stdin, and read data from pipe // step 4, exec(ls) // step 5, exec(grep) return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -