{"id":5067,"date":"2019-09-27T19:14:21","date_gmt":"2019-09-27T11:14:21","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5067"},"modified":"2019-09-27T19:14:24","modified_gmt":"2019-09-27T11:14:24","slug":"setquota","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/setquota","title":{"rendered":"setquota\u547d\u4ee4 – \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u914d\u989d"},"content":{"rendered":"\n

setquota\u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u914d\u989d\u7f16\u8f91\u5668\uff0c\u53ef\u4ee5\u91c7\u7528\u547d\u4ee4\u884c\u7684\u65b9\u5f0f\u76f4\u63a5\u8bbe\u7f6e\u7528\u6237\u6216\u7528\u6237\u7ec4\u7684\u914d\u989d\u9650\u5236\u3002<\/p>\n\n\n\n

\u82e5\u60f3\u7981\u7528\u914d\u989d\u9650\u5236\uff0c\u53ef\u4ee5\u628a\u76f8\u5e94\u53c2\u6570\u8bbe\u7f6e\u4e3a0\u3002\u5982\u679c\u591a\u4e2a\u6587\u4ef6\u7cfb\u7edf\u9700\u8981\u4fee\u6539\u914d\u989d\u8bbe\u7f6e\uff0c\u6bcf\u4e2a\u6587\u4ef6\u7cfb\u7edf\u9700\u8981\u8c03\u7528\u4e00\u6b21setquota\u547d\u4ee4\u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-a<\/td>\u7f16\u8f91\u542f\u7528\u914d\u989d\u9650\u5236\u7684\u6240\u6709\u6587\u4ef6\u7cfb\u7edf<\/td><\/tr>
-b<\/td>\u4ece\u6807\u51c6\u8f93\u5165\u8bfb\u53d6\u914d\u989d\u8bbe\u7f6e\u4fe1\u606f<\/td><\/tr>
-u<\/td>\u8bbe\u7f6e\u547d\u4ee4\u884c\u53c2\u6570name\u6307\u5b9a\u7528\u6237\u7684\u914d\u989d<\/td><\/tr>
-t<\/td>\u8bbe\u7f6e\u7528\u6237\u6570\u636e\u5feb\u4e0e\u4fe1\u606f\u8282\u70b9\u7684\u5bbd\u9650\u65f6\u95f4\u5468\u671f<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u5728\u6587\u4ef6\u7cfb\u7edf\uff08\/dev\/sdb2\uff09\u8bbe\u7f6e\u6307\u5b9a\u7528\u6237\u7684\u914d\u989d\u9650\u5236\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# setquota -u zwx 20480 40 960 600 1200 \/deb\/sda1<\/pre>\n\n\n\n

\u628a\u6570\u636e\u5757\u4e0e\u4fe1\u606f\u8282\u70b9\u7684\u5bbd\u9650\u65f6\u95f4\u5468\u671f\u8bbe\u7f6e\u4e3a10\u5929\uff0886400\u79d2\/\u6bcf\u5929\uff09\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# setquota -tu 864000 86400 \/deb\/sda1<\/pre>\n","protected":false},"excerpt":{"rendered":"

setquota\u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u914d\u989d\u7f16\u8f91\u5668\uff0c\u53ef\u4ee5\u91c7\u7528\u547d\u4ee4\u884c\u7684\u65b9\u5f0f\u76f4\u63a5\u8bbe\u7f6e\u7528\u6237\u6216\u7528\u6237\u7ec4\u7684\u914d\u989d\u9650\u5236\u3002 \u82e5\u60f3\u7981\u7528\u914d\u989d\u9650\u5236 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5067"}],"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=5067"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5067\/revisions"}],"predecessor-version":[{"id":5098,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5067\/revisions\/5098"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}