摘要:
作者:jackson 更新日期:20240502 /etc/inputrc The inputrc file handles keyboard mapping for specific situations. This file is the startup file used by Readlin 阅读全文
摘要:
作者:jackson 日期:20240502 关闭 bash 的 beep 响铃提示音,只需要将 /etc/inputrc 文件中 set bell-style none 取消注释即可。 注释:由于该文件是保护文件需要执行权限,可以 sudo <editor> /etc/inputrc 进行更改。 阅读全文
摘要:
作者:jackson 更新时间:20240502 一、概述 每个进程都有一份环境列表,即在用户空间内存维护的一组环境变量。 调用 fork() 创建的新进程,会继承父进程的环境副本,这也为父子进程间通信提供了一种机制。 调用 exec() 替换当前正在运行的程序时,新程序要么继承老程序的环境,要么在 阅读全文
摘要:
WSL2 默认使用 NAT 网络,因此 DNS 服务器执行 Windows,在 /etc/resolv.conf 中可以找到 DNS 服务器。 之后打开 Windows Calsh 的局域网连接,并找到端口。 server=`awk '$1 == "nameserver" {print $2}' / 阅读全文