linux free命令_Linux上的free命令的源代码在哪里?

linux free命令

Where can I find the source code for the free command on Linux?

Linux上哪里可以找到free命令的源代码?

The source code for the free commands (and many more, like kill, ps, top, sysctl) can be found in procps-ng:

可以在procps-ng中找到free命令的源代码(还有更多命令,例如killpstopsysctl ):

https://gitlab.com/procps-ng/procps

https://gitlab.com/procps-ng/procps

procps is a set of command line and full-screen utilities that provide information out of the pseudo-filesystem most commonly located at /proc.

procps是一组命令行和全屏实用程序,它们从伪文件系统(通常位于/ proc中)提供信息。

This pseudo-filesystem provides a simple interface to the kernel data structures. The programs of procps generally concentrate on the structures that describe the processess running on the system.

该伪文件系统为内核数据结构提供了一个简单的接口。 procps程序通常集中在描述系统上运行的进程的结构上。

The following programs are found in procps:

在procps中可以找到以下程序:

free - Report the amount of free and used memory in the system
kill - Send a signal to a process based on PID
pgrep - List processes based on name or other attributespkill - Send a signal to a process based on name or other attributes
pmap - Report memory map of a process
ps - Report information of processes
pwdx - Report current directory of a process
skill - Obsolete version of pgrep/pkill
slabtop - Display kernel slab cache information in real time
snice - Renice a process
sysctl - Read or Write kernel parameters at run-time
tload - Graphical representation of system load average
top - Dynamic real-time view of running processes
uptime - Display how long the system has been running
vmstat - Report virtual memory statistics
w - Report logged in users and what they are doing
watch - Execute a program periodically, showing output fullscreen
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。

翻译自: https://www.systutorials.com/where-is-the-source-code-for-the-free-command-on-linux/

linux free命令

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值