{"id":518,"date":"2013-02-06T10:51:44","date_gmt":"2013-02-06T01:51:44","guid":{"rendered":"http:\/\/43.203.250.216\/?p=518"},"modified":"2013-02-06T10:51:44","modified_gmt":"2013-02-06T01:51:44","slug":"bash%ec%97%90%ec%84%9c-%ec%9e%90%eb%8f%99%ec%99%84%ec%84%b1%ed%95%a0-%eb%95%8c-%ea%b3%b5%eb%b0%b1-%eb%ac%b8%ec%9e%90-%eb%93%a4%ec%96%b4%ea%b0%80%eb%8a%94-%eb%ac%b8%ec%a0%9c","status":"publish","type":"post","link":"https:\/\/litcoder.com\/?p=518","title":{"rendered":"bash\uc5d0\uc11c \uc790\ub3d9\uc644\uc131\ud560 \ub54c \uacf5\ubc31 \ubb38\uc790 \ub4e4\uc5b4\uac00\ub294 \ubb38\uc81c"},"content":{"rendered":"<p>\uc5b8\uc81c\ubd80\ud130 \uc600\ub294\uc9c0\ub294 \ubaa8\ub974\uaca0\uc9c0\ub9cc, ubuntu (12.04)\uc758 bash shell\uc5d0\uc11c \uc790\ub3d9\uc644\uc131\uc744 \ud558\ub824\uace0 &lt;tab&gt; key\ub97c \ub204\ub974\uba74 \uacf5\ubc31\ubb38\uc790\uac00 \ud558\ub098\uc529 \ucd94\uac00\ub418\ub294 \ubb38\uc81c\uac00 \uc0dd\uacbc\ub2e4. \uc5ec\ub7ec \ub2e8\uacc4\ub85c \ub418\uc5b4 \uc788\ub294 file\uc5d0 \uc811\uadfc\ud558\ub824\uace0 \ud560 \ub54c \ub9e4\ubc88 &lt;tab&gt; key\ub97c \ub204\ub974\uace0 &lt;backspace&gt;\ub85c \uacf5\ubc31\ubb38\uc790\ub97c \uc9c0\uc6cc\uc918\uc57c \ud558\uae30 \ub54c\ubb38\uc5d0 \ubb34\ucc99 \ubd88\ud3b8\ud588\ub294\ub370 \uc880\u00a0\ucc3e\uc544\ubcf4\ub2c8 bash_completion file\uc744 \uc218\uc815\ud574\uc11c \uc774 \ubb38\uc81c\ub97c \ud574\uacb0 \ud560 \uc218 \uc788\uc5c8\ub2e4.<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">sudo vi \/etc\/bash_completion<\/pre>\n<pre class=\"nums:true start-line:1580 lang:sh decode:true\"># makeinfo and texi2dvi are defined elsewhere.\nfor i in a2ps awk bash bc bison cat colordiff cp csplit \\\n    curl cut date df diff dir du enscript env expand fmt fold gperf gprof \\\n    grep grub head indent irb ld ldd less ln ls m4 md5sum mkdir mkfifo mknod \\\n    mv netstat nl nm objcopy objdump od paste patch pr ptx readelf rm rmdir \\\n    sed seq sha{,1,224,256,384,512}sum shar sort split strip tac tail tee \\\n    texindex touch tr uname unexpand uniq units vdir wc wget who; do\n    have $i &amp;&amp; complete -F _longopt -o default $i\ndone\nunset i<\/pre>\n<p>1587 line\uc758 &#8216;_longopt -o <em><strong>default<\/strong><\/em>&#8216; \ubd80\ubd84\uc744 \ub2e4\uc74c\uacfc \uac19\uc774&#8217; _longopt -o <em><strong>filenames<\/strong><\/em>&#8216;\ub85c \ubcc0\uacbd\ud55c \ud6c4 \ub2e4\uc2dc shell\uc744 \ub2e4\uc2dc \uc5f4\uace0 \uc0ac\uc6a9\ud558\uba74 \ub41c\ub2e4.<\/p>\n<pre class=\"lang:default decode:true crayon-selected\"> have $i &amp;&amp; complete -F _longopt -o filenames $i<\/pre>\n<p>(<a href=\"https:\/\/answers.launchpad.net\/ubuntu\/+source\/bash-completion\/+question\/155411\">\ucc38\uc870 \ub9c1\ud06c<\/a>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc5b8\uc81c\ubd80\ud130 \uc600\ub294\uc9c0\ub294 \ubaa8\ub974\uaca0\uc9c0\ub9cc, ubuntu (12.04)\uc758 bash shell\uc5d0\uc11c \uc790\ub3d9\uc644\uc131\uc744 \ud558\ub824\uace0 &lt;tab&gt; key\ub97c \ub204\ub974\uba74 \uacf5\ubc31\ubb38\uc790\uac00 \ud558\ub098\uc529 \ucd94\uac00\ub418\ub294 \ubb38\uc81c\uac00 \uc0dd\uacbc\ub2e4. \uc5ec\ub7ec \ub2e8\uacc4\ub85c \ub418\uc5b4 \uc788\ub294 file\uc5d0 \uc811\uadfc\ud558\ub824\uace0 \ud560 \ub54c \ub9e4\ubc88 &lt;tab&gt; key\ub97c \ub204\ub974\uace0 &lt;backspace&gt;\ub85c \uacf5\ubc31\ubb38\uc790\ub97c \uc9c0\uc6cc\uc918\uc57c \ud558\uae30 \ub54c\ubb38\uc5d0 \ubb34\ucc99 \ubd88\ud3b8\ud588\ub294\ub370 \uc880\u00a0\ucc3e\uc544\ubcf4\ub2c8 bash_completion file\uc744 \uc218\uc815\ud574\uc11c \uc774 \ubb38\uc81c\ub97c \ud574\uacb0 \ud560 \uc218 \uc788\uc5c8\ub2e4. sudo vi \/etc\/bash_completion # makeinfo and texi2dvi are defined [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[4],"tags":[20,72,125],"class_list":["post-518","post","type-post","status-publish","format-standard","hentry","category-linux","tag-bash","tag-linux","tag-tip"],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":339,"url":"https:\/\/litcoder.com\/?p=339","url_meta":{"origin":518,"position":0},"title":"[Tip] Hex string\uc744 bash\uc5d0\uc11c \ubcf4\uae30","author":"litcoder","date":"2012\ub144 7\uc6d4 11\uc77c","format":false,"excerpt":"Unix command\uc778 echo\ub97c -e option\uacfc \ud568\uaed8\uc4f0\uba74 '\\x'\ub85c escape\ub41c hex\uac12\uc744 \ubb38\uc790\ub85c \ubcf4\uc5ec \uc900\ub2e4. $ echo -e \"\\x5B\\xEB\\xAC\\xBC\\xEB\\x86\\x80\\xEC\\x9D\\xB4\\x20\\xEA\\xB7\\xB8\\xEB\\xA6\\xBC\\xED\\x8C\\x90\\x5D\" [\ubb3c\ub180\uc774 \uadf8\ub9bc\ud310] Web browser\ub4f1\uc5d0\uc11c\ub294 '\\x'\uac00 \uc544\ub2cc '%'\ub97c escape character\ub85c \uc0ac\uc6a9\ud558\uae30\ub3c4 \ud558\ub294\ub370 \uc774\ub7f0\uacbd\uc6b0\ub294 bash\uc758 string \uce58\ud658\uc744 \uc0ac\uc6a9\ud574\uc11c '\\x'\ub85c \ubcc0\ud658\ud574\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub2e4. $ str='\\x5B\\xEB\\xAC\\xBC\\xEB\\x86\\x80\\xEC\\x9D\\xB4\\x20\\xEA\\xB7\\xB8\\xEB\\xA6\\xBC\\xED\\x8C\\x90\\x5D' $ echo -e ${str\/\/%\/\\\\x} [\ubb3c\ub180\uc774 \uadf8\ub9bc\ud310] * Bash\uc5d0\uc11c string\uc744 \ub2e4\ub8e8\ub294 \ubc29\ubc95\uc5d0\u2026","rel":"","context":"&quot;Linux&quot;\uc5d0\uc11c","block_context":{"text":"Linux","link":"https:\/\/litcoder.com\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3229,"url":"https:\/\/litcoder.com\/?p=3229","url_meta":{"origin":518,"position":1},"title":"Multi-container app\uc758 Bad Gateway(502) \ubb38\uc81c \ub514\ubc84\uae45","author":"litcoder","date":"2023\ub144 6\uc6d4 4\uc77c","format":false,"excerpt":"Intel Training and Learning Suite(TLS)\ub294 \ucc98\uc74c\uc73c\ub85c \uacbd\ud5d8\ud574\ubcf4\ub294 multi-container application\uc774\ub2e4. \uc911\uac04\uc5d0 native\uac1c\ubc1c\uc744 \uc704\ud55c \ud658\uacbd \uc124\uc815\uc744 \ub07c\uc6cc \ub123\uc5b4 \ubcf4\ub824\uace0 \uc774\uac83 \uc800\uac83 \uc2dc\ub3c4\ud558\ub294 \uc911\uc5d0 web interface\ub97c \ub2f4\ub2f9\ud558\ub294 tls_proxy\ub77c\ub294 docker\uac00 Bad Gateway\ub97c \ub744\uc6b0\uba74\uc11c \ubb38\uc81c\uac00 \uc0dd\uacbc\ub2e4. \ub514\ubc84\uae45 \ud558\ub294 \uacfc\uc815\uc5d0\uc11c \uc0ac\uc6a9\ud574 \ubcf8 docker-compose\uba85\ub839\uc5b4 \ub4e4\uc758 \uc4f0\uc784\uc0c8\uac00 \uc720\uc6a9\ud560 \uac83 \uac19\uc544\uc11c \uae30\ub85d\uc73c\ub85c \ub0a8\uaca8 \ub454\ub2e4. Port number\uc640 docker\ucc3e\uae30: docker-compose ps\u2026","rel":"","context":"&quot;Linux&quot;\uc5d0\uc11c","block_context":{"text":"Linux","link":"https:\/\/litcoder.com\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1489,"url":"https:\/\/litcoder.com\/?p=1489","url_meta":{"origin":518,"position":2},"title":"Android Studio\uc5d0\uc11c Googletest \uc0ac\uc6a9\uc744 \uc704\ud55c \uc124\uc815","author":"litcoder","date":"2016\ub144 7\uc6d4 1\uc77c","format":false,"excerpt":"Android Studio\ub294 \ub0b4 PC\uc5d0\uc11c \uc880 \ub290\ub9ac\uae34 \ud558\uc9c0\ub9cc, \ub2e4\ub978 IDE\ub4e4\uc5d0 \ube44\ud574\uc11c\ub294 Emacs key binding\uc774 \ube44\uad50\uc801 \uc798\ub418\uc5b4 \uc788\uc5b4\uc11c \ub9cc\uc871 \ud558\uba74\uc11c \uc870\uae08\uc529 \ubc30\uc6cc\uac00\uace0 \uc788\ub2e4. NDK\ub85c JNI\uc5d0\uc11c \ubd88\ub7ec\ub2e4 \uc4f8 native code\ub97c \uad6c\ud604\ud558\ub2e4 \ubcf4\ub2c8 Googletest\ub97c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574 \ub9e4\ubc88 device\ub85c push \ud558\uace0 \uc2e4\ud589\ud558\ub294 \uacfc\uc815\uc774 \uaf64\ub098 \ubc88\uac70\ub85c\uc640\uc11c script\ub85c \ub9cc\ub4e4\uc5b4 \ubcf4\uc558\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Android Studio\uc5d0\uc11c Googletest\ub97c \uc0ac\uc6a9\ud558\uae30 \uc704\ud55c\u2026","rel":"","context":"&quot;Android&quot;\uc5d0\uc11c","block_context":{"text":"Android","link":"https:\/\/litcoder.com\/?cat=2"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/litcoder.com\/wp-content\/uploads\/2016\/07\/androidstudio_edittool.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/litcoder.com\/wp-content\/uploads\/2016\/07\/androidstudio_edittool.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/litcoder.com\/wp-content\/uploads\/2016\/07\/androidstudio_edittool.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/litcoder.com\/wp-content\/uploads\/2016\/07\/androidstudio_edittool.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":3116,"url":"https:\/\/litcoder.com\/?p=3116","url_meta":{"origin":518,"position":3},"title":"CARLA client\ub97c build\ud574\uc57c \ud558\ub294\ub370 clang-8\uc774 \uc5c6\ub304\ub2e4.","author":"litcoder","date":"2022\ub144 7\uc6d4 27\uc77c","format":false,"excerpt":"2022\ub144 9\uc6d4 \ud604\uc7ac CARLA simulator\uc758 \ucd5c\uc2e0 \ubc84\uc804\uc778 0.9.13\uc73c\ub85c PythonAPI\ub97c \ube4c\ub4dc\ud558\ub824\uace0 \ud558\uba74 clang-8 version\uc744 \uc694\uad6c\ud558\ub294\ub370 Ubuntu 22.04\uc5d0\uc11c\ub294 clang-8\uc758 repository\ub97c \ucd94\uac00\ud558\uace0 \uc124\uce58 \uc2dc\ub3c4\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 \uc758\uc874\uc131 \uc624\ub958\uac00 \uc0dd\uae34\ub2e4. The following packages have unmet dependencies: clang-8 : Depends: libllvm8 (>= 1:8~svn298832-1~) but it is not going to be installed Depends: libstdc++-5-dev but it\u2026","rel":"","context":"&quot;Linux&quot;\uc5d0\uc11c","block_context":{"text":"Linux","link":"https:\/\/litcoder.com\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1283,"url":"https:\/\/litcoder.com\/?p=1283","url_meta":{"origin":518,"position":4},"title":"[Tip] Git:\uc0ad\uc81c\ud55c file\ub4e4 \ud55c\ubc88\uc5d0 \uc815\ub9ac\ud558\uae30","author":"litcoder","date":"2015\ub144 5\uc6d4 11\uc77c","format":false,"excerpt":"Git repository\uc5d0\uc11c \ub9ce\uc740 \ud30c\uc77c\ub4e4\uc744 \uc0ad\uc81c\ud558\uace0 \uc801\uc6a9\ud558\ub294 \uacbd\uc6b0, git rm \uba85\ub839\uc5b4\ub85c \ud30c\uc77c\uc774\ub984\ub4e4\uc744 \ud558\ub098\ud558\ub098 \uc785\ub825\ud574 \uc8fc\ub294\uac83\uc740 \ubb34\ucc99 \uadc0\ucc2e\ub2e4. \uc608\uc804\uc5d0\ub294 \uc138\ub85c \ud3b8\uc9d1\uc774 \ub418\ub294 Ultra-edit \uac19\uc740 utility\ub85c \uc0ad\uc81c\ub41c \ubaa9\ub85d\uc744 \ubcf5\uc0ac\ud55c \ub2e4\uc74c git rm \uba85\ub839\uc5b4 line\uc73c\ub85c \ud3b8\uc9d1\ud574\uc11c \ub2e4\uc2dc terminal\uc5d0 \ubd99\uc5ec \ub123\ub294 \uc0bd\uc9c8\uc744 \ud588\uc5c8\ub2e4. Git-ls-files command\ub97c \uc4f0\uba74 \ub354 \uc774\uc0c1 \uadf8\ub7f4 \ud544\uc694\uac00 \uc5c6\ub2e4. \uc774 command\ub294 repository\uc758 file\ub4e4\uc744\u2026","rel":"","context":"&quot;Tools &amp; Tips&quot;\uc5d0\uc11c","block_context":{"text":"Tools &amp; Tips","link":"https:\/\/litcoder.com\/?cat=6"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3984,"url":"https:\/\/litcoder.com\/?p=3984","url_meta":{"origin":518,"position":5},"title":"Raspberry Pi\uc6a9 Qt5 Cross Compile\uc744 \uc704\ud55c Bash Script","author":"litcoder","date":"2025\ub144 12\uc6d4 31\uc77c","format":false,"excerpt":"\uc9c0\ub09c\ubc88 \ud3ec\uc2a4\ud305 \"Raspberry Pi 5\uc6a9 Qt5 Cross Compile\"\uc5d0\uc11c \uc218\ud589\ud588\ub358 \uacfc\uc815\uc744 \uc880\ub354 \ud3b8\ub9ac\ud558\uac8c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574\uc11c Bash Script\ub85c \ub9cc\ub4e4\uc5c8\ub2e4. \ub2e4\uc6b4\ub85c\ub4dc GitHub gist\ub85c \uc62c\ub824 \ub450\uc5c8\uc73c\ub2c8 \ub2e4\uc74c \uc704\uce58\uc5d0\uc11c \ub2e4\uc6b4\ub85c\ub4dc \ubc1b\uc544\uc11c \ud06c\ub85c\uc2a4 \ucef4\ud30c\uc77c\uc744 \uc218\ud589\ud560 \uc704\uce58\uc5d0 \uc800\uc7a5\ud574 \ub454\ub2e4. wget https:\/\/gist.github.com\/litcoder\/6db4c80289edb8bca43cd11a3ae88574\/raw\/3b0f170850892fe5be86c47395c3b8c026cf9e34\/build_qt5_rpi.sh \uc0ac\uc6a9\ubc95 --help \uc635\uc158\uc73c\ub85c \uac04\ub2e8\ud55c \uc124\uba85\uc774 \ub098\uc624\uae30\ub294 \ud558\uc9c0\ub9cc, \uac00\uc7a5 \uac04\ub2e8\ud55c \uc2e4\ud589 \ubc29\ubc95\uc740 work space\ub97c \uc2e4\ud589 \ud30c\uc77c\uc758 \ud30c\ub77c\ubbf8\ud130\ub85c\u2026","rel":"","context":"&quot;Linux&quot;\uc5d0\uc11c","block_context":{"text":"Linux","link":"https:\/\/litcoder.com\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=518"}],"version-history":[{"count":0,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/518\/revisions"}],"wp:attachment":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}