美文网首页
Linux常用命令

Linux常用命令

作者: 奔跑伯爵 | 来源:发表于2021-06-13 09:59 被阅读0次
  1. 设置系统为UTC时区
timedatectl set-timezone 'UTC'
  1. 查看磁盘剩余空间
df -h
  1. 查看目录及子目录占用空间
du --max-depth=1 -lh /var

其中--max-depth表示子目录深度

  1. 列出当前服务
systemctl list-units

相关文章

网友评论

      本文标题:Linux常用命令

      本文链接:https://www.haomeiwen.com/subject/mfwweltx.html