{"id":491,"date":"2016-10-08T19:11:19","date_gmt":"2016-10-08T10:11:19","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2016\/10\/08\/wsl_bash\/"},"modified":"2016-10-08T19:11:19","modified_gmt":"2016-10-08T10:11:19","slug":"wsl_bash","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2016\/10\/08\/wsl_bash\/","title":{"rendered":"WSL bash \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30a9\u30f3\u30c8\u30ab\u30e9\u30fc\u3092\u9752\u304b\u3089\u5909\u66f4"},"content":{"rendered":"<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2016\/09\/24\/windows_subsystem_for_linux\">Windows subsystem for Linux \u3092\u5c0e\u5165\u3057\u305f\u3002<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.co.jp\/%E6%94%B9%E8%A8%82%E6%96%B0%E7%89%88-%E3%83%97%E3%83%AD%E3%81%AE%E3%81%9F%E3%82%81%E3%81%AELinux%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E6%A7%8B%E7%AF%89%E3%83%BB%E9%81%8B%E7%94%A8%E6%8A%80%E8%A1%93-Software-Design-plus\/dp\/4774184268\/ref=as_li_ss_il?s=books&amp;ie=UTF8&amp;qid=1475921402&amp;sr=1-4&amp;keywords=Linux&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=33a35adff31525d3d6fc121ce9ccb08c\" target=\"_blank\"><img decoding=\"async\" border=\"0\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=4774184268&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\"><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=li2&amp;o=9&amp;a=4774184268\" width=\"1\" height=\"1\">  <\/p>\n<p>\u3093\u3060\u3051\u3069\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8272\u304c\u3001\u3068\u3063\u3066\u3082\u3068\u3063\u3066\u3082\u3001\u898b\u306b\u304f\u3044\u306e\u3067\u5909\u66f4\u3059\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WSL-bash-_109D8\/bash_color01.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"bash_color01\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"bash_color01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WSL-bash-_109D8\/bash_color01_thumb.jpg\" width=\"428\" height=\"122\"><\/a><\/p>\n<p><a title=\"http:\/\/askubuntu.com\/questions\/466198\/how-do-i-change-the-color-for-directories-with-ls-in-the-console\" href=\"http:\/\/askubuntu.com\/questions\/466198\/how-do-i-change-the-color-for-directories-with-ls-in-the-console\">http:\/\/askubuntu.com\/questions\/466198\/how-do-i-change-the-color-for-directories-with-ls-in-the-console<\/a><\/p>\n<p>LS_COLORS \u306e\u5185\u5bb9 \u3092\u5909\u66f4\u3059\u308b\u3002<\/p>\n<pre class=\"prettyprint linenums\">piroto@DOGEN:~$ echo $LS_COLORS\r\nrs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:t\r\nw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:\r\n*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;\r\n31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;\r\n31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;\r\n35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=0\r\n1;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v\r\n=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi\r\n=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=0\r\n1;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=\r\n00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36::di=0;35:<\/pre>\n<p>blue=34\u306e\u3088\u3046\u306a\u306e\u3067\u300134\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u500b\u6240\u3092\u78ba\u8a8d<\/p>\n<pre class=\"prettyprint linenums\">piroto@DOGEN:\/$ echo $LS_COLORS | tr ':' '\\n' | grep '34'\r\ndi=01;34\r\now=34;42<\/pre>\n<p>.bashrc \u306b\u3066\u74b0\u5883\u5909\u6570\u3092\u4e0a\u66f8\u304d<\/p>\n<pre class=\"prettyprint linenums\">piroto@DOGEN:\/$ vi ~\/.bashrc<\/pre>\n<p>blue=34 \u304b\u3089 cyan=36 \u306b\u5909\u66f4<\/p>\n<pre class=\"prettyprint linenums\">LS_COLORS=$LS_COLORS:'di=0;36:ow=0;36' ; export LS_COLORS<\/pre>\n<p>bash\u3092\u518d\u8d77\u52d5\u3002<\/p>\n<p>\u898b\u3084\u3059\u304f\u306a\u3063\u305f\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WSL-bash-_109D8\/bash_color02.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"bash_color02\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"bash_color02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WSL-bash-_109D8\/bash_color02_thumb.jpg\" width=\"488\" height=\"99\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u4e0a\u8a18\u30b5\u30a4\u30c8\u304b\u3089\u3001\u8a2d\u5b9a\u5185\u5bb9\u3092\u5f15\u7528\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6700\u521d\u306e\u756a\u53f7\u306f\u30b9\u30bf\u30a4\u30eb\u3001\u30bb\u30df\u30b3\u30ed\u30f3\u306b\u7d9a\u3051\u3066\u3001\u8272\u3092\u6307\u5b9a\u3059\u308b<\/p>\n<p>\u30b9\u30bf\u30a4\u30eb<\/p>\n<pre>0   = default colour\r\n1   = bold\r\n4   = underlined\r\n5   = flashing text\r\n7   = reverse field\r\n40  = black background\r\n41  = red background\r\n42  = green background\r\n43  = orange background\r\n44  = blue background\r\n45  = purple background\r\n46  = cyan background\r\n47  = grey background\r\n100 = dark grey background\r\n101 = light red background\r\n102 = light green background\r\n103 = yellow background\r\n104 = light blue background\r\n105 = light purple background\r\n106 = turquoise background<\/pre>\n<p>\u8272<\/p>\n<pre>31  = red\r\n32  = green\r\n33  = orange\r\n34  = blue\r\n35  = purple\r\n36  = cyan\r\n37  = grey\r\n90  = dark grey\r\n91  = light red\r\n92  = light green\r\n93  = yellow\r\n94  = light blue\r\n95  = light purple\r\n96  = turquoise<\/pre>\n<p>\u5bfe\u8c61<\/p>\n<pre>di = directory\r\nfi = file\r\nln = symbolic link\r\npi = fifo file\r\nso = socket file\r\nbd = block (buffered) special file\r\ncd = character (unbuffered) special file\r\nor = symbolic link pointing to a non-existent file (orphan)\r\nmi = non-existent file pointed to by a symbolic link (visible when you type ls -l)\r\nex = file which is executable (ie. has 'x' set in permissions).\r\n*.rpm = files with the ending .rpm<\/pre>\n<p>\u4ee5\u4e0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows subsystem for Linux \u3092\u5c0e\u5165\u3057\u305f\u3002 \u3093\u3060\u3051\u3069\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8272\u304c\u3001\u3068\u3063\u3066\u3082\u3068\u3063\u3066\u3082\u3001\u898b\u306b\u304f\u3044\u306e\u3067\u5909\u66f4\u3059\u308b\u3002 http:\/\/askubuntu.com\/questions\/466198\/h [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[10,60,13],"tags":[],"class_list":["post-491","post","type-post","status-publish","format-standard","hentry","category-linux","category-ubuntu","category-windows"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=491"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/491\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}