当前位置:网站首页>RHCSA7
RHCSA7
2022-07-05 12:50:00 【Grey rain】
Linux Process introduction
process : Started program
Process status :stop、running、sleep
ps List the processes in the system
ps -ef
ps aux
The output of the two is not much different , But the display style is different .aux yes BSD style ,-ef yes System V style . This is a minor difference , One difference that affects use is aux Will be truncated command Column , and -ef Can't .
top Dynamic display process status ( Memory consumption is higher than others )
It can be used ? See sort by
Process management and performance query
Foreground process
example :sleep 10(10s The internal front desk cannot be operated )
Background processes
example :
sleep 1000 &( Create background process )
ps -ef | grep sleep perhaps jobs
bg Process number ( Background running process )
fg Process number ( The foreground runs the process )
The end of the process
kill
-l Check what you can use
9 Force end process , Regardless of process status
15 The end of the process , Automatic end ( Don't write default 15)
How to write it :kill num Process number
kill all name End all name process
pkill
-U user end user All processes
-t terminal
Load average
vmstat 2
ctrl+z
Control services and daemons
systemctl
systemctl isolate multi-user.target Enable command line interface
systemctl list-units View system services
systemctl list-units --all View all services of the system
systemctl list-units -file service
systemctl is-failed/active/enable/runing View service status
How to write it :systemctl is-failed sshd
systemctl stop Service name
systemctl reload Service name
systemctl restart Service name
systemctl status Service name
边栏推荐
- DNS的原理介绍
- Distributed solution - distributed session consistency problem
- Storage Basics
- NFT: how to make money with unique assets?
- Implementing Yang Hui triangle with cyclic queue C language
- Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue
- 太方便了,钉钉上就可完成代码发布审批啦!
- SAP self-development records user login logs and other information
- C alarm design
- Distributed cache architecture - cache avalanche & penetration & hit rate
猜你喜欢
Detailed structure and code of inception V3
Simply take stock reading notes (2/8)
前几年外包干了四年,秋招感觉人生就这样了..
Research: data security tools cannot resist blackmail software in 60% of cases
Making and using the cutting tool of TTF font library
Alipay transfer system background or API interface to avoid pitfalls
实战模拟│JWT 登录认证
Anaconda creates a virtual environment and installs pytorch
Taobao short video, why the worse the effect
About LDA model
随机推荐
Comprehensive upgrade of Taobao short video photosynthetic platform
Redis master-slave configuration and sentinel mode
UNIX socket advanced learning diary -ipv4-ipv6 interoperability
在家庭智能照明中应用的测距传感芯片4530A
Super efficient! The secret of swagger Yapi
Introduction to relational model theory
I met Tencent in the morning and took out 38K, which showed me the basic smallpox
Pytoch through datasets Imagefolder loads datasets directly from files
Free testing of Taobao tmall API order and flag insertion remark interface
Experimental design - using stack to realize calculator
Simply take stock reading notes (2/8)
上午面了个腾讯拿 38K 出来的,让我见识到了基础的天花
Anaconda creates a virtual environment and installs pytorch
RHCSA5
10 minute fitness method reading notes (5/5)
Laravel文档阅读笔记-mews/captcha的使用(验证码功能)
Implementing Yang Hui triangle with cyclic queue C language
UNIX socket advanced learning diary - advanced i/o functions
10 minute fitness method reading notes (2/5)
CVPR 2022 | 基于稀疏 Transformer 的单步三维目标识别器