{"id":295314,"date":"2024-12-31T20:06:44","date_gmt":"2024-12-31T12:06:44","guid":{"rendered":"https:\/\/lrxjmw.cn\/lxthjblczznz.html"},"modified":"2024-12-31T20:06:44","modified_gmt":"2024-12-31T12:06:44","slug":"lxthjblczznz","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lxthjblczznz.html","title":{"rendered":"Linux\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u64cd\u4f5c\u6307\u5357\uff1a\u67e5\u770b\u4e0e\u8bbe\u7f6ePATH\u3001HISTSIZE\u3001SHELL\u3001HOME\u7b49\u53d8\u91cf"},"content":{"rendered":"

linux\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf<\/p>\n

\u64cd\u4f5c\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u901a\u5e38\u662f\u6307\u62ff\u6765\u6307\u5b9a\u7cfb\u7edf\u8fd0\u884c\u73af\u5883\u4e2d\u7684\u4e00\u4e9b\u53c2\u6570<\/p>\n

\u5e38\u89c1\u7684\u73af\u5883\u53d8\u91cf\u6709\uff1a<\/p>\n

linux\u8def\u5f84\u53d8\u91cf_linux\u73af\u5883\u53d8\u91cf\u8def\u5f84_linux\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u8def\u5f84<\/p>\n

PATH:\u6307\u5b9a\u547d\u4ee4<\/a>\u7684\u641c\u7d22\u8def\u5f84<\/p>\n

HISTSIZE:\u4fdd\u5b58\u5386\u53f2\u547d\u4ee4\u7684\u8bb0\u5f55\u6761\u6570<\/p>\n

SHELL:\u5f53\u524d\u7684shell,\u503c\u4e00\u822c\u662fbinbash<\/p>\n

linux\u73af\u5883\u53d8\u91cf\u8def\u5f84_linux\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u8def\u5f84_linux\u8def\u5f84\u53d8\u91cf<\/p>\n

HOME:\u6307\u5b9a\u7528\u6237\u7684\u4e3b\u5de5\u4f5c\u76ee\u5f55<\/p>\n

\u67e5\u770b\u73af\u5883\u53d8\u91cf\uff1a\u4f7f\u7528env\u547d\u4ee4\u6765\u67e5\u770b\u6240\u6709\u7684\u7cfb\u7edf\u7684\u73af\u5883\u4ea7\u770b\u7cfb\u7edf\u7684\u73af\u73af\u5883\u73af\u5883\u53d8\u91cf\u4f7f\u7528echo$NAME\/\/NAME\u662f\u81ea\u5df1\u6307\u5b9a\u7684\u73af\u5883\u53d8\u91cf\u4f7f\u7528set\u663e\u793a\u672c\u5730\u5b9a\u4e49\u7684\u73af\u5883\u53d8\u91cf\u548cshell\u53d8\u91cf\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n

\u8bbe\u7f6e\u6c38\u4e45\u7684\u73af\u5883\u53d8\u91cf<\/p>\n

\n

1.\u5728\/etc\/profile \u7684\u6587\u4ef6\u4e0b\u7f16\u8f91\uff0c\u6240\u6539\u53d8\u7684\u73af\u5883\u53d8\u91cf\u662f\u9762\u5411\u6240\u6709\u7528\u6237\u7684\n

linux\u8def\u5f84\u53d8\u91cf_linux\u73af\u5883\u53d8\u91cf\u8def\u5f84_linux\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u8def\u5f84<\/p>\nexport CLASSPATH = \/..\/... \u8be5\u8def\u5f84\u4e3a\u7edd\u5bf9\u8def\u5f84\n2.\u5728\u5f53\u524d\u7528\u6237\u76ee\u5f55\u4e0b.\/barsh_profile\u6587\u4ef6\u4e2d\u4fee\u6539 \u8fdb\u884c\u4fee\u6539\u7684\u8bdd\uff0c\u4ec5\u5bf9\u5f53\u524d\u7684\u7528\u6237\u751f\u6548\nvim \/home\/wens\/.barshc\n

linux\u73af\u5883\u53d8\u91cf\u8def\u5f84_linux\u8def\u5f84\u53d8\u91cf_linux\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u8def\u5f84<\/p>\nexport CLASSPATH = \/..\/... \u8be5\u8def\u5f84\u4e3a\u7edd\u5bf9\u8def\u5f84\n\u6700\u540e\u4f7f\u7528source\u547d\u4ee4 \u53ef\u4ee5\u76f4\u63a5\u4f7f\u73af\u5883\u53d8\u91cf\u751f\u6548\nsource \/home\/wens\/.barshc \/\/\u76f4\u63a5\u8ddf\u73af\u5883\u53d8\u91cf\u7684\u6587\u4ef6\n<\/code><\/pre>\n<\/p>\n

\u8bbe\u7f6e\u4e34\u65f6\u7684\u73af\u5883\u53d8\u91cf<\/p>\n

linux\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u8def\u5f84_linux\u8def\u5f84\u53d8\u91cf_linux\u73af\u5883\u53d8\u91cf\u8def\u5f84<\/p>\n

\n

\u4f7f\u7528export \u547d\u4ee4\u76f4\u63a5\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4f46\u662f\u662f\u4e34\u65f6\u7684<\/code><\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"

\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u64cd\u4f5c\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e00\u822c\u662f\u6307\u7528\u6765\u6307\u5b9a\u7cfb\u7edf\u8fd0\u884c\u73af\u5883\u4e2d\u7684\u4e00\u4e9b\u53c2\u6570\u5e38\u89c1\u7684\u73af\u5883\u53d8\u91cf\u6709\uff1aPATH:\u6307\u5b9a\u547d\u4ee4\u7684\u641c\u7d22\u8def\u5f84\u4fdd\u5b58\u5386\u53f2\u547d\u4ee4\u7684\u8bb0\u5f55\u6761\u6570,\u503c\u901a\u5e38\u662fbinbashHOME:\u6307\u5b9a\u7528\u6237\u7684\u4e3b\u5de5\u4f5c\u76ee\u5f55\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff1a\u8bbe\u7f6e\u6c38\u4e45\u7684\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u4e34\u65f6\u7684\u73af\u5883\u53d8\u91cf<\/p>\n","protected":false},"author":1,"featured_media":295315,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[5322,5321,5320,2802,2801],"class_list":["post-295314","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-lshjbl","tag-cjhjbl","tag-czxthjbl","tag-hjblsz","tag-xthjbl"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/295314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=295314"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/295314\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/295315"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=295314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=295314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=295314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}