查看指定目录所属分区
[root@localhost games]# df -h /usrFilesystem Size Used Avail Use% Mounted on/dev/mapper/VolGroup-lv_root 50G 45G 2.2G 96% /查看目录下子目录大小 [root@localhost usr]# du -sm /usr/*251 /usr/bin1 /usr/etc1 /usr/games24 /usr/include1022 /usr/java129 /usr/lib236 /usr/lib6431 /usr/libexec4846 /usr/local1 /usr/pgsql43 /usr/pgsql-10161 /usr/sbin553 /usr/share1 /usr/src0 /usr/tmp9043 /usr/workspace[root@localhost workspace]# du -sm ./*
116 ./apache-tomcat-8.5.4-8079489 ./apache-tomcat-8.5.4-8080680 ./dataCollection587 ./gerrit-server5717 ./intefaceDocGitRepo84 ./intialDatabase1 ./links1 ./logs68 ./openfire30 ./openfire_push805 ./scrapyProject1 ./shawn.xls1 ./shawn.xlsx24 ./showdoc-master391 ./sonarqube-5.556 ./springboot3 ./StaticGenerateTable删除当前目录下所有文件:
rm -rf ./*