Questions tagged «stat»

3
如何知道noatime或relatime是内核中的默认挂载选项?
我试图知道是否在文件系统上设置了relatime或noatime,但是我没有在/ etc / fstab中,也没有在内核引导选项中找到该信息。 首先,很明显我一次没有“正常”行为: root@antec:/tmp# rm -f test.txt; echo a>test.txt root@antec:/tmp# stat test.txt | \grep -i 2011 Access: 2011-08-01 21:54:30.000000000 +0200 Modify: 2011-08-01 21:54:30.000000000 +0200 Change: 2011-08-01 21:54:30.000000000 +0200 root@antec:/tmp# cat test.txt > /dev/null root@antec:/tmp# stat test.txt | \grep -i 2011 Access: 2011-08-01 21:54:53.000000000 +0200 Modify: 2011-08-01 21:54:30.000000000 +0200 …
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.