{"id":909,"date":"2019-04-22T23:34:37","date_gmt":"2019-04-22T15:34:37","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=909"},"modified":"2019-04-22T23:34:55","modified_gmt":"2019-04-22T15:34:55","slug":"mattrib","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/mattrib","title":{"rendered":"mattrib\u547d\u4ee4 – \u66f4\u6539\u6216\u663e\u793aMS-DOS\u6587\u4ef6\u7684\u5c5e\u6027"},"content":{"rendered":"\n

mattrib\u547d\u4ee4\u7528\u4e8e\u53d8\u66f4\u6216\u663e\u793aMS-DOS\u6587\u4ef6\u7684\u5c5e\u6027\uff0cMS-DOS\u6587\u4ef6\u662f\u6307\u8bb0\u5f55\u5728\u5b58\u50a8\u4ecb\u8d28\uff08\u5982\u78c1\u76d8\u3001\u5149\u76d8\uff09\u4e0a\u7684\u4e00\u7ec4\u76f8\u5173\u4fe1\u606f\u7684\u96c6\u5408\u3002<\/p>\n\n\n\n

mattrib\u4e3amtools\u5de5\u5177\u6307\u4ee4\uff0c\u6a21\u62dfMS-DOS\u7684attrib\u6307\u4ee4\uff0c\u53ef\u53d8\u66f4MS-DOS\u6587\u4ef6\u7684\u5c5e\u6027 \u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-a\/+a<\/td>\u9664\u53bb\/\u8bbe\u5b9a\u5907\u4efd\u5c5e\u6027 <\/td><\/tr>
-h\/+h  <\/td>\u9664\u53bb\/\u8bbe\u5b9a\u9690\u85cf\u5c5e\u6027 <\/td><\/tr>
-r\/+r <\/td>\u9664\u53bb\/\u8bbe\u5b9a\u53ea\u8bfb\u5c5e\u6027 <\/td><\/tr>
-s\/+s <\/td>\u9664\u53bb\/\u8bbe\u5b9a\u7cfb\u7edf\u5c5e\u6027 <\/td><\/tr>
-\/ <\/td>\u9012\u5f52\u7684\u5904\u7406\u5305\u542b\u6240\u6709\u5b50\u76ee\u5f55\u7684\u6587\u4ef6<\/td><\/tr>
-X <\/td>\u4ee5\u8f83\u77ed\u7684\u683c\u5f0f\u8f93\u51fa\u7ed3\u679c <\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u5217\u51fa A \u69fd MSDOS \u683c\u5f0f\u78c1\u7247\u4e0a\u6240\u6709\u6587\u4ef6\u7684\u5c5e\u6027\uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# mattrib a: <\/pre>\n\n\n\n

\u9664\u53bb A \u69fd\u78c1\u7247\u4e0a msdos.sys \u6863\u6848\u7684\u9690\u85cf\u5c5e\u6027 \uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# mattrib -h a:msdos.sys <\/pre>\n\n\n\n

\u589e\u52a0 A \u69fd\u78c1\u7247\u4e0a msdos.sys \u6863\u6848\u7684\u53ea\u8bfb\u5c5e\u6027 \uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# mattrib +r a:msdos.sys<\/pre>\n\n\n\n

\u9664\u53bb A \u69fd\u78c1\u7247\u4e0a msdos.sys \u6863\u6848\u7684\u5907\u4efd\u3001\u7cfb\u7edf\u5c5e\u6027 \uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# mattrib -a -s a:msdos.sys<\/pre>\n\n\n\n

\u9664\u53bb A \u69fd\u78c1\u7247\u4e0a\u5305\u542b\u5b50\u76ee\u5f55\u4e0b\u6240\u6709\u6863\u6848\u7684\u53ea\u8bfb\u5c5e\u6027\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# mattrib -r -\/ a:*.* <\/pre>\n","protected":false},"excerpt":{"rendered":"

mattrib\u547d\u4ee4\u7528\u4e8e\u53d8\u66f4\u6216\u663e\u793aMS-DOS\u6587\u4ef6\u7684\u5c5e\u6027\uff0cMS-DOS\u6587\u4ef6\u662f\u6307\u8bb0\u5f55\u5728\u5b58\u50a8\u4ecb\u8d28\uff08\u5982\u78c1\u76d8\u3001\u5149\u76d8\uff09\u4e0a\u7684 […]<\/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\/909"}],"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=909"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/909\/revisions"}],"predecessor-version":[{"id":1043,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/909\/revisions\/1043"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}