{"id":9331,"date":"2023-02-10T06:18:07","date_gmt":"2023-02-09T21:18:07","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=9331"},"modified":"2023-07-18T21:05:11","modified_gmt":"2023-07-18T12:05:11","slug":"linux%e3%81%aebash%e3%81%ae%e3%83%a6%e3%83%bc%e3%82%b6%e7%94%a8%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e5%86%85%e5%ae%b9%e3%82%92%e7%a2%ba%e8%aa%8d%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/9331","title":{"rendered":"Linux\u306ebash\u306e\u30e6\u30fc\u30b6\u7528\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3059\u308b\uff01"},"content":{"rendered":"<p>Linux\u306ebash\u306e\u30e6\u30fc\u30b6\u7528\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002RHEL 8.4\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u300c.bash_profile\u300d\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u300c.bash_profile\u300d\u306b\u306f\u3001\u74b0\u5883\u5909\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u306e\u306b\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u30b3\u30e1\u30f3\u30c8\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u300c.bash_profile\u300d\u306f\u3001\u300c.bashrc\u300d\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,6]; title: ; notranslate\" title=\"\">\r\n$ cat .bash_profile \r\n# .bash_profile\r\n\r\n# Get the aliases and functions\r\nif &#x5B; -f ~\/.bashrc ]; then\r\n\t. ~\/.bashrc\r\nfi\r\n\r\n# User specific environment and startup programs\r\n<\/pre>\n<h2>\u300c.bashrc\u300d\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u300c.bashrc\u300d\u306f\u3001\u300c.bash_profile\u300d\u304b\u3089\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002\u300c.bashrc\u300d\u306b\u306f\u3001\u30e6\u30fc\u30b6\u5b9a\u7fa9\u306e\u30a8\u30a4\u30ea\u30a2\u30b9\u3068\u95a2\u6570\u3092\u8a18\u8f09\u3059\u308b\u3088\u3046\u306b\u30b3\u30e1\u30f3\u30c8\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ cat .bashrc \r\n# .bashrc\r\n\r\n# Source global definitions\r\nif &#x5B; -f \/etc\/bashrc ]; then\r\n\t. \/etc\/bashrc\r\nfi\r\n\r\n# User specific environment\r\nif ! &#x5B;&#x5B; &quot;$PATH&quot; =~ &quot;$HOME\/.local\/bin:$HOME\/bin:&quot; ]]\r\nthen\r\n    PATH=&quot;$HOME\/.local\/bin:$HOME\/bin:$PATH&quot;\r\nfi\r\nexport PATH\r\n\r\n# Uncomment the following line if you don't like systemctl's auto-paging feature:\r\n# export SYSTEMD_PAGER=\r\n\r\n# User specific aliases and functions\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>bash\u306b\u95a2\u3059\u308b\u30e6\u30fc\u30b6\u5b9a\u7fa9\u306f\u3001\u300c.bash_profile\u300d\u3068\u300c.bashrc\u300d\u306b\u8a18\u8f09\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/8974\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u30b3\u30de\u30f3\u30c9\u64cd\u4f5c\u3092\u884c\u3046\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u30b3\u30de\u30f3\u30c9\u64cd\u4f5c\u3092\u884c\u3046\uff01<\/div><div class=\"substr\">Linux\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001\u30b3\u30de\u30f3\u30c9\u64cd\u4f5c\u3092\u884c\u3046\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\uff01...<\/div><\/a><\/div>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/7679\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><a href=\"https:\/\/amzn.to\/3H5qkUu\" rel=\"noopener\" target=\"_blank\"><img decoding=\"async\" class=\"paapi5-pa-product-image-source lazyload\" data-src=\"https:\/\/m.media-amazon.com\/images\/I\/51ZPkoBGdZL._SL160_.jpg\" alt=\"N\/A\"><\/a><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u306ebash\u306e\u30e6\u30fc\u30b6\u7528\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002RHEL 8.4\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":5527,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[197],"tags":[374,282,25,764],"class_list":["post-9331","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-login-session","tag-bash","tag-linux","tag-25","tag-764"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/9331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=9331"}],"version-history":[{"count":1,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/9331\/revisions"}],"predecessor-version":[{"id":13102,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/9331\/revisions\/13102"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5527"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=9331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=9331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=9331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}