{"id":4124,"date":"2019-07-27T22:22:20","date_gmt":"2019-07-27T14:22:20","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4124"},"modified":"2022-05-13T00:54:50","modified_gmt":"2022-05-12T16:54:50","slug":"head","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/head","title":{"rendered":"head\u547d\u4ee4 – \u663e\u793a\u6587\u4ef6\u5f00\u5934\u7684\u5185\u5bb9"},"content":{"rendered":"\n

head\u547d\u4ee4\u7684\u529f\u80fd\u662f\u663e\u793a\u6587\u4ef6\u5f00\u5934\u7684\u5185\u5bb9\uff0c\u9ed8\u8ba4\u4e3a\u524d10\u884c\u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-n <\u6570\u5b57><\/td>\u5b9a\u4e49\u663e\u793a\u884c\u6570<\/td><\/tr>
-c <\u6570\u5b57><\/td>\u6307\u5b9a\u663e\u793a\u5934\u90e8\u5185\u5bb9\u7684\u5b57\u7b26\u6570 <\/td><\/tr>
-v<\/td>\u603b\u662f\u663e\u793a\u6587\u4ef6\u540d\u7684\u5934\u4fe1\u606f <\/td><\/tr>
-q<\/td>\u4e0d\u663e\u793a\u6587\u4ef6\u540d\u7684\u5934\u4fe1\u606f <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u9ed8\u8ba4\u663e\u793a\u6587\u4ef6\u7684\u524d10\u884c\u5185\u5bb9\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# head -n 10 anaconda-ks.cfg <\/strong>\r\n#version=RHEL8\r\nignoredisk --only-use=sda\r\nautopart --type=lvm\r\n# Partition clearing information\r\nclearpart --none --initlabel\r\n# Use graphical install\r\ngraphical\r\nrepo --name=\"AppStream\" --baseurl=file:\/\/\/run\/install\/repo\/AppStream\r\n# Use CDROM installation media\r\ncdrom\r<\/pre>\n\n\n\n

\u6307\u5b9a\u663e\u793a\u6587\u4ef6\u7684\u524d5\u884c\u5185\u5bb9\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# head -n 5 anaconda-ks.cfg <\/strong>\r\n#version=RHEL8\r\nignoredisk --only-use=sda\r\nautopart --type=lvm\r\n# Partition clearing information\r\nclearpart --none --initlabel\r<\/pre>\n\n\n\n

\u6307\u5b9a\u663e\u793a\u6587\u4ef6\u7684\u524d20\u4e2a\u5b57\u7b26\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# head -c 20 anaconda-ks.cfg <\/strong>\r\n#version=RHEL8\r<\/pre>\n","protected":false},"excerpt":{"rendered":"

head\u547d\u4ee4\u7684\u529f\u80fd\u662f\u663e\u793a\u6587\u4ef6\u5f00\u5934\u7684\u5185\u5bb9\uff0c\u9ed8\u8ba4\u4e3a\u524d10\u884c\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1ahead [\u53c2\u6570] \u6587\u4ef6 \u5e38\u7528\u53c2\u6570\uff1a -n […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4124"}],"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=4124"}],"version-history":[{"count":12,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4124\/revisions"}],"predecessor-version":[{"id":9646,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4124\/revisions\/9646"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}