当前位置:网站首页>Rhcsa 04 - process management
Rhcsa 04 - process management
2022-07-04 04:28:00 【Wangwanlin Ben】
Run the process
Background running process
[[email protected] ~]# dd if=/dev/zero of=/dev/null & # Run the process in the background
[1] 10125
[[email protected] ~]# jobs # View background processes
[1]+ Running dd if=/dev/zero of=/dev/null &
[[email protected] ~]# fg 1 # Put the specified background process into the foreground
dd if=/dev/zero of=/dev/null
recovery stop The process of
[[email protected] ~]# dd if=/dev/zero of=/dev/null
^Z
[1]+ Stopped dd if=/dev/zero of=/dev/null
[[email protected] ~]# bg
[1]+ dd if=/dev/zero of=/dev/null &Monitor progress
top command

ps command

Change process priority
By default , All processes have the same priority . The value of priority is from -19( Highest priority ) To 20( Lowest priority ).
[[email protected] ~]# nice -n -10 dd if=/dev/zero of=/dev/null &
[1] 10270
stay top Display page , Press r, Then input 10270, Then input nice value -15, You can change the priority value to -15,

Kill the process
killall dd Kill all dd process

You can also use kill <PID> A separate kill A process .
边栏推荐
猜你喜欢
随机推荐
Configuration and hot update of nocturnal simulator in hbuildx
最长递增子序列问题(你真的会了吗)
Dry goods | detailed explanation of webshell Foundation
leetcode 121 Best Time to Buy and Sell Stock 买卖股票的最佳时机(简单)
Katalon uses script to query list size
Programmers' telecommuting is mixed | community essay solicitation
微信公众号无限回调授权系统源码
Graduation project
Restore the subtlety of window position
leetcode:1314. 矩阵区域和【二维前缀和模板】
PPt 教程,如何在 PowerPoint 中将演示文稿另存为 PDF 文件?
苹果CMS仿西瓜视频大气响应式视频模板源码
RHCSA 03 - 文件的基础权限
旭化成首次参展第五届中国国际进口博览会(5th CIIE)
毕业设计项目
User defined path and file name of Baidu editor in laravel admin
FT2000+下LPC中断绑核使用说明
Leetcode skimming: binary tree 04 (sequence traversal of binary tree)
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
How to add custom API objects in kubernetes (1)









