摘要: 作者:jackson 更新日期:20240502 /etc/inputrc The inputrc file handles keyboard mapping for specific situations. This file is the startup file used by Readlin 阅读全文
posted @ 2024-05-03 00:00 Jackson0_0 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 作者:jackson 日期:20240502 关闭 bash 的 beep 响铃提示音,只需要将 /etc/inputrc 文件中 set bell-style none 取消注释即可。 注释:由于该文件是保护文件需要执行权限,可以 sudo <editor> /etc/inputrc 进行更改。 阅读全文
posted @ 2024-05-02 23:44 Jackson0_0 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 作者:jackson 更新时间:20240502 一、概述 每个进程都有一份环境列表,即在用户空间内存维护的一组环境变量。 调用 fork() 创建的新进程,会继承父进程的环境副本,这也为父子进程间通信提供了一种机制。 调用 exec() 替换当前正在运行的程序时,新程序要么继承老程序的环境,要么在 阅读全文
posted @ 2024-05-02 23:31 Jackson0_0 阅读(1) 评论(0) 推荐(0) 编辑
摘要: server=`awk '$1 == "nameserver" {print $2}' /etc/resolv.conf` port=7897 export http_proxy="http://$server:$port" export https_proxy="http://$server:$p 阅读全文
posted @ 2024-05-02 23:27 Jackson0_0 阅读(3) 评论(0) 推荐(0) 编辑