Third day for RHCE
basic linux command
system
- systemd 初始化进程服务
- systemctl start 服务 启动服务
- systemctl stop 服务 停止服务
- systemctl restart 服务 重启服务
- systemctl enable 服务 把服务加入启动项
- systemctl status 服务 查询服务的状态
man
- man 命令 查询命令的使用方法
date
- date 查询时间
- 用法 date “+%Y-%m-%d” 开始要有"+"
wget
- 用于在终端中下载网络文件
- 用法:wget 网址
ps
- 查询系统中进程的状态
- R:running,运行,正在为用户提供服务
- S:sleep,中断,等待为用户提供服务
- D:die,不可中断,类似于windows下的卡死
- Z:zombie,僵死,没有为用户提供服务,但是一直在消耗系统的资源
- T:stop,停止
- ps常用的三个参数 aux