当前位置:网站首页>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
边栏推荐
- 【云原生】Nacos-TaskManager 任务管理的使用
- 10 minute fitness method reading notes (1/5)
- 太方便了,钉钉上就可完成代码发布审批啦!
- Add a new cloud disk to Huawei virtual machine
- 深度长文探讨Join运算的简化和提速
- Distance measuring sensor chip 4530a used in home intelligent lighting
- CVPR 2022 | 基于稀疏 Transformer 的单步三维目标识别器
- Hexadecimal conversion summary
- VoneDAO破解组织发展效能难题
- Kotlin变量
猜你喜欢

Implementing Yang Hui triangle with cyclic queue C language

Preliminary exploration of basic knowledge of MySQL

我在滴滴做开源

【Nacos云原生】阅读源码第一步,本地启动Nacos

Pinduoduo flag insertion remarks API

JDBC exercise - query data encapsulated into object return & simple login demo

Principle of universal gbase high availability synchronization tool in Nanjing University

Taobao order amount check error, avoid capital loss API

Annotation problem and hidden Markov model

Storage Basics
随机推荐
From the perspective of technology and risk control, it is analyzed that wechat Alipay restricts the remote collection of personal collection code
Kotlin process control and circulation
A possible investment strategy and a possible fuzzy fast stock valuation method
Anaconda creates a virtual environment and installs pytorch
Resnet18 actual battle Baoke dream spirit
Common commands and basic operations of Apache Phoenix
前几年外包干了四年,秋招感觉人生就这样了..
Sqoop import and export operation
单独编译内核模块
Vonedao solves the problem of organizational development effectiveness
Pytoch implements tf Functions of the gather() function
Simply take stock reading notes (3/8)
Learning items
Research: data security tools cannot resist blackmail software in 60% of cases
Storage Basics
UNIX socket advanced learning diary - advanced i/o functions
ZABBIX ODBC database monitoring
Clear neo4j database data
国内市场上的BI软件,到底有啥区别
Principle of universal gbase high availability synchronization tool in Nanjing University