在win10 64位专业版操作系统及以上,微软允许建立linux子系统,实现在cmd下启动Linux Bash。这提供了一种利用强大的bash功能高效管理win10文件的方法。
安装完成后,原来的win10磁盘自动挂载在/mnt/下面,如/mnt/c /mnt/d等。
example:
find /mnt/d/ -type f -atime +100 >unaccessed100.txt # 查找win10的d盘下超过100天未使用的文件,并把列表保存到当前目录下的unaccessed100.txt, 方便记忆,-atime access time
find /mnt/d/ -type f -mtime +100 >unmodified100.txt # 查找d盘下超过100天未编辑的文件,并把列表保存到当年目录的unmodified100.txt, 方便记忆,-mtime modification time
其他,可以如法炮制。