Linux常用命令汇总

90 阅读1分钟

1.查看磁盘使用情况

df -h

  1. 查看目录大小

//当前目录
du -h --max-depth=1
查看指定目录
du -h --max-depth=1 /path

  1. shell相关

//查看当前shell
echo $SHELL
// 查看系统可用shell
cat /etc/shells
//修改shell
chsh -s /bin/bash