{"id":2442,"date":"2019-07-27T12:33:14","date_gmt":"2019-07-27T04:33:14","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=2442"},"modified":"2019-07-27T12:33:15","modified_gmt":"2019-07-27T04:33:15","slug":"stat","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/stat","title":{"rendered":"stat\u547d\u4ee4 – \u663e\u793a\u6587\u4ef6\u72b6\u6001\u4fe1\u606f"},"content":{"rendered":"\n

stat\u547d\u4ee4\u7528\u6765\u663e\u793a\u6587\u4ef6\u6216\u6587\u4ef6\u7cfb\u7edf\u7684\u8be6\u7ec6\u4fe1\u606f<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>stat [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570<\/strong>\uff1a<\/p>\n\n\n\n
-L<\/td>\u652f\u6301\u7b26\u53f7\u94fe\u63a5<\/td><\/tr>
-f<\/td>\u663e\u793a\u6587\u4ef6\u7cfb\u7edf\u7684\u4fe1\u606f<\/td><\/tr>
-t<\/td>\u4ee5\u7b80\u6d01\u7684\u65b9\u5f0f\u8f93\u51fa<\/td><\/tr>
--help<\/td>\u663e\u793a\u547d\u4ee4\u5e2e\u52a9\u4fe1\u606f<\/td><\/tr>
--version<\/td>\u663e\u793a\u547d\u4ee4\u7248\u672c\u4fe1\u606f<\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u67e5\u770b\u6587\u4ef6 anaconda-ks.cfg \u7684\u4e09\u79cd\u65f6\u95f4\u72b6\u6001\uff1aAccess\uff0cModify\uff0cChange\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# stat anaconda-ks.cfg <\/pre>\n\n\n\n

\u67e5\u770b\u6587\u4ef6\u7cfb\u7edf\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# stat -f anaconda-ks.cfg <\/pre>\n\n\n\n

\u4ee5\u7b80\u6d01\u7684\u65b9\u5f0f\u8f93\u51fa\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# stat -t anaconda-ks.cfg \n anaconda-ks.cfg 1229 8 8180 0 0 fd00 68898764 1 0 0 1540481629 1540510390 1540510390 0 4096 system_u:object_r:admin_home_t:s0<\/pre>\n\n\n\n

\u547d\u4ee4\u7248\u672c\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# stat --version<\/pre>\n","protected":false},"excerpt":{"rendered":"

stat\u547d\u4ee4\u7528\u6765\u663e\u793a\u6587\u4ef6\u6216\u6587\u4ef6\u7cfb\u7edf\u7684\u8be6\u7ec6\u4fe1\u606f \u8bed\u6cd5\u683c\u5f0f\uff1astat [\u53c2\u6570] \u5e38\u7528\u53c2\u6570\uff1a -L \u652f\u6301\u7b26\u53f7\u94fe\u63a5 – […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2442"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=2442"}],"version-history":[{"count":12,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2442\/revisions"}],"predecessor-version":[{"id":4414,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2442\/revisions\/4414"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=2442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=2442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=2442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}