>/dev/ >/dev/null|grep 02a42c7a845094a8904f7b3faf686b81 uniq -d, --repeated only print duplicate lines, one for each group -w, --check-chars=N compare no more than N characters in lines…
Given a list of directory info including directory path, and all the files with contents in this directory, you need to find out all the groups of duplicate files in the file system in terms of their paths. A group of duplicate files consists of at l…
测试服务器用久了,如果没有运行自动清除日志的脚本,会导致硬盘空间不足,应用.数据库.环境等启动不了: 如果你对系统不是特别熟悉,就无法知道那些占用空间的日志或缓存文件在哪里,这时,我们就可以利用查找大文件命令来找到可以清除的文件. 查看磁盘命令有: df -h 查看当前磁盘总量.剩余.已用 du -sh 查看当前文件大小 du -h 或者 du -m …