摘要: 查看磁盘使用率 $ fdisk -l # 查看磁盘分区 $ parted -l # 查看分区挂载目录 $ df # 实际占用的空间 $ du # 空洞文件创建, if=输入文件 of=输出文件 bs=块大小 count=写入次数 seek=跳过多少块 $ dd if=/dev/zero bs=4M 阅读全文
posted @ 2022-09-08 22:31 phper-liunian 阅读(255) 评论(0) 推荐(0) 编辑
摘要: SELinux 简介 # 查看selinux命令 # 查看selinux的允许状态 $ getenforce Enforcing $ /usr/sbin/sestatus # 查看进程具体的标签 $ ps -Z unconfined_u:unconfined_r:unconfined_t:s0-s0 阅读全文
posted @ 2022-09-08 21:53 phper-liunian 阅读(70) 评论(0) 推荐(0) 编辑
摘要: centos7 服务管理工具 systemctl常见操作 systemctl start 服务名称 [启动服务] systemctl stop 服务名称 [停止服务] systemctl restart 服务名称 [重启服务] systemctl reload 服务名称 [重新加载服务] syste 阅读全文
posted @ 2022-09-08 21:29 phper-liunian 阅读(104) 评论(0) 推荐(0) 编辑