rpm、yum
| 命令 | 作用 |
|---|---|
systemctl 命令
<font style="color:rgb(13, 13, 13);">Systemd</font>
<font style="color:rgb(13, 13, 13);">systemctl</font><font style="color:rgb(13, 13, 13);">Systemd</font><font style="color:rgb(13, 13, 13);">systemctl</font>
systemctl start <servicename>systemctl stop <servicename>systemctl restart <servicename>systemctl reload <servicename>systemctl status <servicename>systemctl enable <servicename>systemctl disable <servicename>systemctl list-units --type=servicejournalctl -u <servicename>journalctl
reboot重启系统poweroff关闭系统wget用于在网络上下载文件,支持HTTP、HTTPS、FTP等协议。格式为“wget [参数]下载地址”。以下是一些常用的命令- wget [URL]
top用于动态地监视进程活动与系统负载等信息,作用类似windows的任务管理器pidof用于查询某个特定服务进程的PID值,格式为格式为pidof [参数] [服务名称],比如查询sshd服务:pidof sshdkill用于终止某个特定PID的进程,格式为kill [参数] [进程PID]
工作目录切换命令
- pwd 查看当前工作目录
- cd 切换当前工作目录
- cd - 返回上一次
标准文件目录
- /binlscpmv
- /boot
- /dev
- /etc
- /home
- /lib/lib64
- /mnt
- /opt
- /proc
- /root
- /sbin
- /tmp
- /usr/usr/bin/usr/lib/usr/local
- /var