8

Linux 的 /proc 目录

 2 years ago
source link: https://hellodk.cn/post/99
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Linux 的 /proc 目录

这个目录是一个虚拟的目录,它是系统内存的映射,我们可以通过直接访问这个目录来获取系统信息。这个目录的内容不在硬盘上而是在内存中,我们也可以直接修改里面的某些文件,比如可以通过下面的命令来屏蔽主机的ping命令(使主机不响应icmp数据包),使别人无法ping通你的机器:

echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all

标签: none

本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK