Questions tagged «stat»

6
如何使用“查找”命令显示修改的日期时间?
使用find命令,我可以显示具有多个级别的目录名称。以下命令显示/var路径下深度为2的所有目录: find /var -maxdepth 2 -type d; 结果显示: /var /var/log /var/log/sssd /var/log/samba /var/log/audit /var/log/ConsoleKit /var/log/gdm /var/log/sa 使用stat命令,我可以找到修改后的日期时间: stat /var/log/samba | grep 'Modify:' 结果是: Modify: 2014-01-02 11:21:27.762346214 -0800 有没有一种方法可以结合使用这两个命令,以便使用修改的日期时间列出目录?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.