简体   繁体   English

我如何找出这些文件或进程的作用(Linux)

[英]How can I find out what these files or processes do (linux)

When I go onto a *nix system and look as ps -A or -e or top I get a large number of processes that are running. 当我进入* nix系统并看起来像ps -A-etop我得到了大量正在运行的进程。 For example. 例如。

init
migration/0
ksoftirqd/0
events/0
khelper
kacpid
kblockd/0
khubd
pdflush
pdflush
kswapd0
aio/0
kseriod
scsi_eh_0
kjournald
udevd
kauditd
kjournald
kjournald
kjournald
kjournald
kjournald
klogd
portmap
rpc.idmapd
sshd
xinetd
gpm
xfs
salinfod
dbus-daemon-1
cups-config-dae
hald
kjournald
agetty
minilogd
kjournald
screen
bash
sshd
bash

Now some i know what their purpose is, but many i cannot even seem to track down on Google, or i just get oblique references to, such as a post from a forum in 1999 complaining about the process. 现在有一些我知道他们的目的是什么,但是有很多我什至无法在Google上找到它,或者我只是得到了倾斜的引用,例如1999年某个论坛上的一篇帖子,抱怨这一过程。

Other than tracking them down one by one is there somewhere i can go to get a better explanation? 除了一个个地追踪他们之外,还有什么地方可以得到更好的解释?

NB I am not asking anyone to tell me directly what they are but pointers to where i can get the understanding myself. 注意:我不是在问任何人直接告诉我他们是什么,而是我可以从中得到自己理解的指针。

The stuff in square brackets are kernel threads. 方括号中的内容是内核线程。 For the others, get the full name (try adding www to the command line) and hit Google, or look at /proc/<pid>/exe and use your package manager to figure out which package the executable comes from. 对于其他名称,请获取全名(尝试在命令行中添加www )并点击Google,或者查看/proc/<pid>/exe并使用程序包管理器确定可执行文件来自哪个程序包。

某些进程可能具有关联的联机帮助页(大多数进程末尾的d代表守护程序,您也可以尝试不带d的名称)

man processname

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM