command
Skill37k starsChanged 8 months agoMITView on GitHub
向选定的进程发送信号冻结进程 skill命令 用于向选定的进程发送信号,冻结进程。这个命令初学者并不常用,深入之后牵涉到系统服务优化之后可能会用到。 如果您发现了一个占用大量CPU和内存的进程,但又不想停止它,该怎么办?考虑下面的top命令输出: 既然您确认进程16514占用了大量内存,您就可以使用skill命令“冻结”它,而不是停止它。 现在,CPU 从 0% 空闲变为 94% 空闲。该进程被有效冻结。过一段时间之后,您可能希望唤醒该进程: 如果希望暂时冻结进程以便为完成更重要的进程腾出空间,该方法非常有用。 此命令用途很广。如果您要停止 "oracle" 用户的所有进程,只需要一个命令即可实现: 可以使用用户、PID、命令或终端 id 作为参数。以下命令可停止所有 rman 命令。 如您所见,skill 决定您输入的参数(进程 ID、用户 ID 或命令)并进行相应操作。这可能会导致在某些情况下出现这样的问题:您可能具有同名的用户和命令。最好的示例是 "oracle" 进程,通常由用户 "oracle" 运行。因此,当您希望停止名为 "oracle" 的进程时,可执行以下命令: 用户 "oracle" 的所有进程都停止,包括您可能要使用的会话。要非常明确地执行命令,您可以选择使用一个新参数指定参数的类型。要停止一个名为 oracle 的命令,可执行以下命令: snice命令的功能与skill类似。但它用于降低进程的优先级,而不是停止进程。首先,检查 top 输出: 现在,将 "oracle" 进程的优先级降低四个点。注意,该值越高,优先级越低。 注意,NI 列(nice 值)现在是 4,优先级现在设置为 20,而不是 15。这对于降低优先级非常有帮助。
2 other projects use a version of this.
Trending
Quiet this year.thin dataabout the whole repository
Most recently taken up by
- proophboard/skillstheir own version, first seen Apr 13, 2026
- efficience-it/claude-skills-phptheir own version, first seen Mar 31, 2026
Who's talking about jaywcjlove/linux-command
- 蓬莱岛主“Linux Command-使用Docker部署一个linux命令查询web工具|| Linux命令大全”YouTube · Oct 6, 2024 · 83 views
- TrumanDu/toolkit“linux-command”GitHub · Jul 17, 2024
- miniwater/mkdocs“Dev”GitHub · Jan 28, 2024
- vhxubo/issues-recommend-url“[jaywcjlove/linux-command: …”GitHub · Sep 20, 2020
- StarSky1/blog“在linux shell中重新开启tomcat服务器并查看服务器运行日志”GitHub · Jun 10, 2019
The biggest 5 of 11 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 11
Talked about on GitHub, the web and YouTube (11 times).
On GitHub · 8
- Jul 17, 2024linux-command — TrumanDu/toolkit0 reactions
- Jan 28, 2024Dev — miniwater/mkdocs0 reactions
- Sep 20, 2020[jaywcjlove/linux-command: Linux命令大全搜索工具,内容包含Linux命令手册、详解、学习、搜集。https://git.io/linux](https://github.com/jaywcjlove/linux-command) — vhxubo/issues-recommend-url0 reactions
- Jun 10, 2019在linux shell中重新开启tomcat服务器并查看服务器运行日志 — StarSky1/blog0 reactions
- May 11, 2019链接有误 — wubaiqing/zaobao0 reactions · 1 comment
3 more on GitHub
- May 3, 2019书签 @ 2019.05.03 — jinzita007/bookmark0 reactions
- Apr 29, 201920190429 49 tabs — fripig/article_log0 reactions
- Jun 11, 2018常用 linux 命令 ✨ — oakland/tecblog0 reactions
On the web · 2
- Aug 26, 20241827902208945602573 — x.com
- May 10, 2019有了这个开源项目,再也不会忘记Linux 命令啦~ 转载 — blog.csdn.net
On YouTube · 1
- Oct 6, 2024Linux Command-使用Docker部署一个linux命令查询web工具|| Linux命令大全 — 蓬莱岛主83 views
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- proophboard/skills★ 6same name
- efficience-it/claude-skills-php★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Files
skill
向选定的进程发送信号冻结进程
补充说明
skill命令 用于向选定的进程发送信号,冻结进程。这个命令初学者并不常用,深入之后牵涉到系统服务优化之后可能会用到。
语法
skill(选项)选项
-f:快速模式;
-i:交互模式,每一步操作都需要确认;
-v:冗余模式;
-w:激活模式;
-V:显示版本号;
-t:指定开启进程的终端号;
-u:指定开启进程的用户;
-p:指定进程的id号;
-c:指定开启进程的指令名称。实例
如果您发现了一个占用大量CPU和内存的进程,但又不想停止它,该怎么办?考虑下面的top命令输出:
top -c -p 16514
23:00:44 up 12 days, 2:04, 4 users, load average: 0.47, 0.35, 0.31
1 processes: 1 sleeping, 0 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 0.0% 0.6% 8.7% 2.2% 0.0% 88.3% 0.0%
Mem: 1026912k av, 1010476k used, 16436k free, 0k shrd, 52128k buff
766724k actv, 143128k in_d, 14264k in_c
Swap: 2041192k av, 83160k used, 1958032k free 799432k cached
PID USER PRI NI SIZE RSS SHARE stat %CPU %MEM time CPU command
16514 oracle 19 4 28796 26M 20252 D N 7.0 2.5 0:03 0 oraclePRODB2...既然您确认进程16514占用了大量内存,您就可以使用skill命令“冻结”它,而不是停止它。
skill -STOP 1之后,检查top输出:
23:01:11 up 12 days, 2:05, 4 users, load average: 1.20, 0.54, 0.38
1 processes: 0 sleeping, 0 running, 0 zombie, 1 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 2.3% 0.0% 0.3% 0.0% 0.0% 2.3% 94.8%
Mem: 1026912k av, 1008756k used, 18156k free, 0k shrd, 3976k buff
770024k actv, 143496k in_d, 12876k in_c
Swap: 2041192k av, 83152k used, 1958040k free 851200k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
16514 oracle 19 4 28796 26M 20252 T N 0.0 2.5 0:04 0 oraclePRODB2...现在,CPU 从 0% 空闲变为 94% 空闲。该进程被有效冻结。过一段时间之后,您可能希望唤醒该进程:
skill -CONT 16514如果希望暂时冻结进程以便为完成更重要的进程腾出空间,该方法非常有用。
此命令用途很广。如果您要停止 "oracle" 用户的所有进程,只需要一个命令即可实现:
skill -STOP oracle可以使用用户、PID、命令或终端 id 作为参数。以下命令可停止所有 rman 命令。
skill -STOP rman如您所见,skill 决定您输入的参数(进程 ID、用户 ID 或命令)并进行相应操作。这可能会导致在某些情况下出现这样的问题:您可能具有同名的用户和命令。最好的示例是 "oracle" 进程,通常由用户 "oracle" 运行。因此,当您希望停止名为 "oracle" 的进程时,可执行以下命令:
skill -STOP oracle用户 "oracle" 的所有进程都停止,包括您可能要使用的会话。要非常明确地执行命令,您可以选择使用一个新参数指定参数的类型。要停止一个名为 oracle 的命令,可执行以下命令:
skill -STOP -c oraclesnice命令的功能与skill类似。但它用于降低进程的优先级,而不是停止进程。首先,检查 top 输出:
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
3 root 15 0 0 0 0 RW 0.0 0.0 0:00 0 kapmd
13680 oracle 15 0 11336 10M 8820 T 0.0 1.0 0:00 0 oracle
13683 oracle 15 0 9972 9608 7788 T 0.0 0.9 0:00 0 oracle
13686 oracle 15 0 9860 9496 7676 T 0.0 0.9 0:00 0 oracle
13689 oracle 15 0 10004 9640 7820 T 0.0 0.9 0:00 0 oracle
13695 oracle 15 0 9984 9620 7800 T 0.0 0.9 0:00 0 oracle
13698 oracle 15 0 10064 9700 7884 T 0.0 0.9 0:00 0 oracle
13701 oracle 15 0 22204 21M 16940 T 0.0 2.1 0:00 0 oracle现在,将 "oracle" 进程的优先级降低四个点。注意,该值越高,优先级越低。
snice +4 -u oracle
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
16894 oracle 20 4 38904 32M 26248 D N 5.5 3.2 0:01 0 oracle注意,NI 列(nice 值)现在是 4,优先级现在设置为 20,而不是 15。这对于降低优先级非常有帮助。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

