{"id":33,"date":"2012-05-15T13:35:38","date_gmt":"2012-05-15T13:35:38","guid":{"rendered":"http:\/\/toolbox.pingvinfeszek.hu\/?p=33"},"modified":"2012-05-15T13:39:28","modified_gmt":"2012-05-15T13:39:28","slug":"bash-completion-on-ubuntu-12-04-lts-hit-tab-to-complete-your-command","status":"publish","type":"post","link":"https:\/\/wp.gaborhargitai.hu\/bash-completion-on-ubuntu-12-04-lts-hit-tab-to-complete-your-command\/","title":{"rendered":"Bash Completion on Ubuntu 12.04 LTS – hit TAB to complete your command"},"content":{"rendered":"

As many of you already know, the Linux\/Unix command line interface has a neat little feature, that greatly enhances the speed of executing commands (and finding files) by reducing the time it takes for one to type in the command. What it actually looks like is fairly simple, for example you would like to issue the command “gnome-commander”. To do this, hit up a terminal of some kind (if you are using a GUI, that is) and start typing “gn” – and hit TAB afterwards. What happens is, bash will complete your command until there are multiple choices available, leaving your flashing cursor just after “gnome-“. Again, hit TAB to see the possibilities, and after that hit “c” and TAB again. Now you should have “gnome-commander” written just by pushing five buttons. Seems pretty comfy, doesn’t it?<\/p>\n

To enable bash completion under Ubuntu 12.04 LTS Precise Pangolin, just hit up a Terminal, navigate to your home directory, open .bashrc<\/strong> in nano and copy-paste these three lines:<\/p>\n

if [ -f \/etc\/bash_completion ]; then
\n. \/etc\/bash_completion
\nfi<\/p><\/blockquote>\n

Save your .bashrc file, exit from your Terminal, and once you log back in voil\u00e1! Bash completion works \ud83d\ude42<\/p>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

As many of you already know, the Linux\/Unix command line interface has a neat little feature, that greatly enhances the speed of executing commands (and finding files) by reducing the time it takes for one to type in the command. What it actually looks like is fairly simple, for example you would like to issue […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/33"}],"collection":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":5,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":35,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/33\/revisions\/35"}],"wp:attachment":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/media?parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/categories?post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/tags?post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}