在Linux中查看占用空间大文件 查看当前目录总共占的容量.而不单独列出各子项占用的容量$ du -sh查看当前目录下一级子文件和子目录占用的磁盘容量.$ du -lh --max-depth=1结果排序输出$ du -h --max-depth=1 | sort -nr结果排序输出且取前n个$ du -h --max-depth=1 | sort -nr | head -n 查看根目录下的/vrv/文件占用情况$ du -bsh /vrv/ du常用的选项:du命令的一些常用参数:-a或-al
常用的Linux 命令 scp root/1.txt root@127.0.0.1:/home rpm 安装软件 systemctl start service 启动服务 systemctl restart service 重启服务 systemctl stop service 停止服务 systemctl status service 查看服务状态 service iptables stauts 开启防火墙状态 service iptables stop 关闭防火墙 service ipta
发现好像这个方法不好使.......~~!还是会失败 如果有人或者自己失误把不该同步的大文件如数据或日志或其他中间文件给commit了并且push了,然后你删掉了,但是其实他仍然在你的git记录中,你的整个项目仍然会非常大,主要是当时的那个删除你没有用git rm,但总之你想清理就很麻烦了现在,或者说,可能现在由于你commit的东西太大,导致了根本没法push上去,会出现类似 fatal: the remote end hung up unexpectedly 这样的错误,然后你就是需要清理一