当前位置:网站首页>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
边栏推荐
- Neural network of PRML reading notes (1)
- 研究:数据安全工具在 60% 的情况下无法抵御勒索软件
- ZABBIX monitors mongodb (template and deployment operations)
- I met Tencent in the morning and took out 38K, which showed me the basic smallpox
- Get the variable address of structure member in C language
- Distributed solution - distributed lock solution - redis based distributed lock implementation
- 国内市场上的BI软件,到底有啥区别
- Pytoch uses torchnet Classerrormeter in meter
- CVPR 2022 | 基于稀疏 Transformer 的单步三维目标识别器
- SAP self-development records user login logs and other information
猜你喜欢
Kotlin variable
C language structure is initialized as a function parameter
Research: data security tools cannot resist blackmail software in 60% of cases
国内市场上的BI软件,到底有啥区别
Resnet18 actual battle Baoke dream spirit
RHCSA1
[figure neural network] GNN from entry to mastery
Pytoch loads the initialization V3 pre training model and reports an error
Implementing Yang Hui triangle with cyclic queue C language
Redis clean cache
随机推荐
Install rhel8.2 virtual machine
Super efficient! The secret of swagger Yapi
Transactions on December 23, 2021
Add a new cloud disk to Huawei virtual machine
CVPR 2022 | single step 3D target recognizer based on sparse transformer
Taobao, pinduoduo, jd.com, Doudian order & Flag insertion remarks API solution
ZABBIX 5.0 - LNMP environment compilation and installation
Kotlin function
Kotlin流程控制、循环
End to end neural network
《信息系统项目管理师》备考笔记---信息化知识
Knowledge representation (KR)
Using docker for MySQL 8.0 master-slave configuration
Distributed solution - Comprehensive decryption of distributed task scheduling platform - xxljob scheduling center cluster
Time conversion error
激动人心!2022开放原子全球开源峰会报名火热开启!
Pinduoduo flag insertion remarks API
10 minute fitness method reading notes (3/5)
GPON other manufacturers' configuration process analysis
Common commands and basic operations of Apache Phoenix