gpt4 book ai didi

linux - Linux 中的 fork() 和 grep 是什么意思?

转载 作者:IT王子 更新时间:2023-10-29 00:20:08 28 4
gpt4 key购买 nike

作为一个非英语母语的人,与其他 API 相比,我很难记住 Linux 命令。在 Linux 中,函数名称似乎并不表明它们的用途。

为什么选择名称 fork() 来创建子进程?在字典中,fork 的意思是“有两个或多个 fork 的器具”,这与创建新进程无关。

为什么选择名称 grep 来“打印与模式匹配的行”? grep 是否表示“g 报告”?

我在哪里可以找到 Linux API 中其他命令背后的词源?

最佳答案

Fork 可以表示一分为二,如道路 ( source )。

Fork (15): to divide into branches.

Grep's etymology :

From an idiomatic command sequence in the qed and ed text editors: ‘g/re/p’, meaning: globally search for a regular expression and print.

This answer列出了一些 Linux 命令的词源。

关于linux - Linux 中的 fork() 和 grep 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13064417/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com