RHEL / CentOS: Install and Activate Bash Autocomplete Feature

В RHEL / CentOS есть замечательная возможность для автодополнения аргументов команды. Ниже приведу пример как активировать данную возможность одним из самых простых способов.

Для начала активируйте EPEL repository

Установка. После активации EPEL repository, установим пакет bash-completion.

# yum install bash-completion

Вывод будет примерно таким:

[18:45][email protected]:~# yum install bash-completion
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.awanti.com
 * base: mirror.awanti.com
 * epel: mirror.xfes.ru
 * extras: mirror.awanti.com
 * updates: mirror.awanti.com
http://repo.markwalker.dk/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package bash-completion.noarch 1:1.3-5.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================================================================================================================================================
 Package                                                                 Arch                                                           Version                                                              Repository                                                    Size
================================================================================================================================================================================================================================================================================
Installing:
 bash-completion                                                         noarch                                                         1:1.3-5.el5                                                          epel                                                         216 k

Transaction Summary
================================================================================================================================================================================================================================================================================
Install      1 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 216 k
Is this ok [y/N]: y
Downloading Packages:
bash-completion-1.3-5.el5.noarch.rpm                                                                                                                                                                                                                     | 216 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : bash-completion                                                                                                                                                                                                                                          1/1 

Installed:
  bash-completion.noarch 1:1.3-5.el5                                                                                                                                                                                                                                            

Complete!

Как использовать? Очень просто, но для начала необходимо либо перезайти на сервер, либо выполнить команду:

. /etc/bash_completion

После этого можно попробовать в действии и насладится автодополнением аргументов:

command [TAB]
command arg[TAB][TAB]
man da[TAB]
rpm -qi ph[TAB][TAB]
yum se[TAB] lsof

213 комментариев к “RHEL / CentOS: Install and Activate Bash Autocomplete Feature

  1. Youre so trendy! I do not intend Ive review anything similar to this before. So great to discover someone with some original ideas on this subject. realy thank you for beginning this up. this internet site is something that is needed online, somebody with a little originality. beneficial work for bringing something new to the net!

  2. You have made some really good points there. I looked on the web for more info about the issue and found most individuals will go along with your views on this web site.

  3. I was very happy to discover this web-site. I wanted to thanks for your time for this remarkable read!! I most definitely delighting in every little bit of it and I have you bookmarked to check out brand-new things you post.

  4. Oh my benefits! an impressive post guy. Thank you However I am experiencing problem with ur rss. Don?t understand why Not able to subscribe to it. Is there any individual getting the same rss problem? Any person that knows kindly respond. Thnkx

  5. When I initially commented I clicked the -Alert me when brand-new comments are added- checkbox and also currently each time a remark is included I obtain four e-mails with the exact same remark. Is there any way you can eliminate me from that service? Thanks!

  6. There are some fascinating times in this article however I don?t recognize if I see every one of them facility to heart. There is some legitimacy but I will certainly hold point of view until I look into it even more. Great article, many thanks and we desire more! Included in FeedBurner too

  7. There are definitely a lot of information like that to think about. That is a fantastic point to bring up. I provide the thoughts above as general ideas but plainly there are inquiries like the one you raise where the most essential point will certainly be working in honest good faith. I don?t know if finest practices have arised around points like that, yet I make certain that your work is clearly identified as a fair game. Both children as well as girls really feel the impact of simply a moment?s enjoyment, for the remainder of their lives.

  8. The following time I read a blog, I hope that it does not dissatisfy me as long as this set. I imply, I recognize it was my selection to review, yet I in fact believed youd have something interesting to state. All I hear is a lot of yawping concerning something that you might repair if you werent as well hectic looking for attention.

  9. The next time I read a blog, I wish that it doesn’t dissatisfy me as high as this set. I suggest, I understand it was my selection to read, however I in fact believed youd have something intriguing to claim. All I listen to is a number of grumbling regarding something that you can repair if you werent as well busy looking for focus.

  10. The next time I check out a blog, I really hope that it doesn’t disappoint me as high as this one. I imply, I know it was my choice to review, but I really believed youd have something fascinating to state. All I hear is a bunch of yawping concerning something that you might repair if you werent as well busy trying to find focus.

  11. I’m curious to find out what blog platform you have been utilizing? I’m experiencing some small security issues with my latest blog and I’d like to find something more risk-free. Do you have any suggestions?

  12. Simply desire to say your article is as astonishing. The clarity in your post is just great and i can assume you are an expert on this subject. Fine with your permission allow me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please keep up the gratifying work.

  13. An impressive share, I simply offered this onto a colleague who was doing a little evaluation on this. And also he as a matter of fact acquired me morning meal because I discovered it for him. smile. So let me reword that: Thnx for the reward! Yet yeah Thnkx for spending the moment to discuss this, I really feel strongly about it and love learning more on this subject. Ideally, as you become proficiency, would certainly you mind upgrading your blog with even more details? It is very useful for me. Huge thumb up for this article!

  14. Good message. I learn something extra difficult on various blogs daily. It will certainly always be promoting to check out web content from various other writers and exercise a something from their store. I?d favor to make use of some with the content on my blog site whether you don?t mind. Natually I?ll give you a web link on your web blog site. Thanks for sharing.

  15. After research a few of the blog posts on your website currently, and I genuinely like your way of blogging. I bookmarked it to my book mark website checklist and will be examining back soon. Pls look into my internet site also as well as let me recognize what you believe.

  16. I just want to mention I am all new to blogging and certainly enjoyed your website. Likely I’m want to bookmark your website . You absolutely have terrific articles and reviews. With thanks for sharing your blog.

  17. My brother suggested I might like this blog. He used to be entirely right. This post actually made my day. You can not consider just how much time I had spent for this info! Thanks!

  18. I simply want to tell you that I am new to blogging and honestly savored your web site. Probably I’m planning to bookmark your website . You certainly come with great posts. With thanks for sharing with us your webpage.

  19. Oh my goodness! Incredible article dude! Thanks, However I am having difficulties with your RSS. I don’t understand why I cannot join it. Is there anyone else having similar RSS issues? Anyone who knows the solution will you kindly respond? Thanks.

  20. Nearly all of what you say happens to be astonishingly precise and it makes me wonder the reason why I had not looked at this with this light previously. Your article really did switch the light on for me personally as far as this particular issue goes. But at this time there is actually one particular point I am not really too comfortable with and whilst I attempt to reconcile that with the main idea of the point, let me observe just what the rest of your readers have to point out.Very well done.

  21. Iím amazed, I must say. Rarely do I come across a blog thatís equally educative and interesting, and without a doubt, you have hit the nail on the head. The issue is something too few people are speaking intelligently about. Now i’m very happy I came across this in my search for something concerning this.

  22. of course like your web site however you need to take a look at the spelling on quite a few of your posts. A number of them are rife with spelling problems and I to find it very troublesome to tell the truth nevertheless I’ll definitely come again again.

  23. After looking into a handful of the articles on your site, I really like your way of blogging. I saved as a favorite it to my bookmark webpage list and will be checking back soon. Please check out my web site too and let me know what you think.

  24. Some people were enthusiastic players or enjoyed music and dancing. Chances are you’ll remember that you were happiest on the running track. Even so, with increasing obligations maybe you have found no time to have pleasure in any of your interests. Are you affected by depression and want to get free from its abysmal depths without lifelong antidepresants? You could attempt and help yourself to overcome depression naturally.

  25. I simply want to mention I am newbie to weblog and definitely savored you’re web blog. Likely I’m planning to bookmark your site . You surely come with outstanding articles and reviews. Thanks a bunch for sharing your webpage.

  26. Intimately, the article is in reality the best on this precious topic. I agree with your conclusions and also can thirstily look forward to your coming updates. Just saying thanks definitely will not simply just be sufficient, for the phenomenal lucidity in your writing. I can at once grab your rss feed to stay informed of any updates. Fabulous work and much success in your business dealings!

  27. Magnificent goods from you, man. I’ve understand your stuff previous to and you’re just extremely great. I really like what you have acquired here, really like what you are saying and the way in which you say it. You make it entertaining and you still care for to keep it wise. I can not wait to read much more from you. This is actually a terrific site.

  28. The next time I learn a blog, I hope that it doesnt disappoint me as a lot as this one. I imply, I know it was my choice to read, but I actually thought youd have one thing fascinating to say. All I hear is a bunch of whining about one thing that you would repair in case you werent too busy searching for attention.

  29. Its like you read my mind! You seem to know a lot about this, like you wrote the book in it or something. I think that you can do with a few pics to drive the message home a little bit, but instead of that, this is wonderful blog. An excellent read. I will definitely be back.

  30. Excellent read, I just passed this onto a colleague who was doing some research on that. And he actually bought me lunch because I found it for him smile Therefore let me rephrase that: Thank you for lunch!

  31. Good post. I learn something more challenging on different blogs everyday. It will always be stimulating to learn content material from different writers and apply slightly something from their store. I’d prefer to use some with the content material on my blog whether you don’t mind. Natually I’ll offer you a hyperlink on your net blog. Thanks for sharing.

  32. Today, I went to the beach with my kids. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! LoL I know this is entirely off topic but I had to tell someone!

  33. I’m impressed, I have to admit. Actually rarely must i encounter a blog that’s both educative and entertaining, and without a doubt, you’ve got hit the nail to the head. Your notion is outstanding; the issue is something which there are not enough individuals are speaking intelligently about. We are very happy that I came across this in my search for some thing regarding this.

  34. I cherished as much as you will obtain carried out right here. The caricature is tasteful, your authored material stylish. nonetheless, you command get got an edginess over that you would like be turning in the following. unwell certainly come further until now once more as precisely the same just about a lot ceaselessly inside of case you defend this increase.

  35. Normally I do not learn article on blogs, however I wish to say that this write-up very compelled me to take a look at and do so! Your writing taste has been surprised me. Thank you, quite nice post.

  36. Hey. Very cool web site!! Man .. Excellent .. Superb .. I’ll bookmark your web site and take the feeds additionally…I’m happy to locate a lot of useful information here in the article. Thanks for sharing.

  37. Simply wish to say your article is as surprising. The clearness to your publish is simply cool and i could suppose you’re knowledgeable on this subject. Well along with your permission let me to grab your feed to stay updated with impending post. Thank you one million and please keep up the gratifying work.

  38. Wow, wonderful blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your web site is wonderful, as well as the content!

  39. I have not checked in here for a while because I thought it was getting boring, but the last several posts are good quality so I guess I will add you back to my everyday bloglist. You deserve it my friend 🙂

  40. I blog often and I truly appreciate your information. This article has really peaked my interest. I will take a note of your blog and keep checking for new details about once per week. I subscribed to your Feed as well.

  41. Today, I went to the beachfront with my kids. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! LoL I know this is totally off topic but I had to tell someone!

  42. A powerful share, I just given this onto a colleague who was doing a bit analysis on this. And he in truth bought me breakfast because I found it for him.. smile. So let me reword that: Thnx for the deal with! But yeah Thnkx for spending the time to discuss this, I really feel strongly about it and love reading extra on this topic. If possible, as you turn out to be experience, would you thoughts updating your blog with extra particulars? It’s highly useful for me. Large thumb up for this weblog publish!

  43. You really make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand. It seems too complex and very broad for me. I am looking forward for your next post, I will try to get the hang of it!

  44. Hello there! Quick question that’s totally off topic. Do you know how to make your site mobile friendly? My weblog looks weird when browsing from my iphone4. I’m trying to find a theme or plugin that might be able to fix this problem. If you have any recommendations, please share. Thank you!

  45. hey there and thanks to your information – I’ve definitely picked up something new from right here. I did alternatively experience several technical issues using this site, as I experienced to reload the site lots of times previous to I may get it to load properly. I have been thinking about if your web host is OK? Now not that I am complaining, but sluggish loading circumstances instances will sometimes affect your placement in google and could harm your high-quality score if advertising and ***********|advertising|advertising|advertising and *********** with Adwords. Anyway I’m adding this RSS to my e-mail and could glance out for much extra of your respective exciting content. Ensure that you update this once more soon..

  46. Amazing blog! Do you have any hints for aspiring writers? I’m planning to start my own blog soon but I’m a little lost on everything. Would you suggest starting with a free platform like WordPress or go for a paid option? There are so many options out there that I’m totally confused .. Any ideas? Cheers!

  47. Have you ever thought about writing an e-book or guest authoring on other blogs? I have a blog centered on the same ideas you discuss and would love to have you share some stories/information. I know my visitors would enjoy your work. If you are even remotely interested, feel free to shoot me an e-mail.

  48. Hiya, I’m really glad I have found this info. Nowadays bloggers publish just about gossips and net and this is really frustrating. A good web site with exciting content, this is what I need. Thanks for keeping this website, I’ll be visiting it. Do you do newsletters? Can’t find it.

  49. Thanks so much for providing individuals with such a memorable possiblity to read articles and blog posts from this site. It is always very kind plus jam-packed with a lot of fun for me personally and my office co-workers to visit your blog no less than three times in a week to read the fresh things you have got. And definitely, I’m also at all times amazed for the very good guidelines you give. Some two ideas in this post are in fact the best we have all ever had.

  50. I used to be very pleased to seek out this internet-site.I wished to thanks in your time for this wonderful read!! I positively having fun with each little bit of it and I’ve you bookmarked to take a look at new stuff you weblog post.

  51. Generally I don’t learn article on blogs, but I wish to say that this write-up very pressured me to take a look at and do so! Your writing style has been surprised me. Thanks, quite nice article.

  52. Thank you for sharing superb informations. Your web site is very cool. I’m impressed by the details that you have on this web site. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for extra articles. You, my pal, ROCK! I found simply the info I already searched everywhere and just could not come across. What a great website.

  53. A formidable share, I simply given this onto a colleague who was doing slightly evaluation on this. And he in fact purchased me breakfast as a result of I discovered it for him.. smile. So let me reword that: Thnx for the treat! However yeah Thnkx for spending the time to debate this, I really feel strongly about it and love studying extra on this topic. If possible, as you develop into experience, would you thoughts updating your weblog with more details? It is extremely helpful for me. Big thumb up for this weblog put up!

  54. I have been exploring for a little bit for any high quality articles or weblog posts on this kind of space . Exploring in Yahoo I eventually stumbled upon this site. Reading this information So i am satisfied to express that I’ve a very just right uncanny feeling I discovered just what I needed. I most unquestionably will make certain to do not disregard this website and provides it a glance regularly.

  55. Thank you for sharing excellent informations. Your web-site is very cool. I’m impressed by the details that you’ve on this website. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for more articles. You, my pal, ROCK! I found simply the info I already searched everywhere and just could not come across. What an ideal site.

  56. Thanks a bunch for sharing this with all of us you actually recognise what you’re talking about! Bookmarked. Please also discuss with my website =). We will have a hyperlink exchange arrangement among us!

  57. I’ve been exploring for a little for any high-quality articles or blog posts on this sort of space . Exploring in Yahoo I finally stumbled upon this web site. Reading this information So i’m satisfied to show that I’ve an incredibly good uncanny feeling I discovered just what I needed. I most for sure will make sure to do not put out of your mind this web site and give it a look on a relentless basis.

  58. Can I simply say what a reduction to seek out someone who truly is aware of what theyre talking about on the internet. You definitely know the way to bring a difficulty to gentle and make it important. More individuals must learn this and perceive this facet of the story. I cant imagine youre not more in style because you undoubtedly have the gift.

  59. You actually make it appear really easy together with your presentation but I find this matter to be really one thing which I feel I would never understand. It sort of feels too complex and extremely broad for me. I am looking ahead on your subsequent publish, I will try to get the cling of it!

  60. May I simply just say what a comfort to discover somebody that genuinely understands what they are talking about over the internet. You definitely realize how to bring an issue to light and make it important. More and more people need to read this and understand this side of your story. I was surprised you are not more popular because you most certainly possess the gift.

  61. Unquestionably imagine that that you said. Your favorite justification seemed to be at the net the simplest factor to understand of. I say to you, I definitely get annoyed even as folks consider issues that they just don’t recognise about. You controlled to hit the nail upon the top as smartly as defined out the whole thing without having side effect , other folks could take a signal. Will likely be again to get more. Thanks

  62. Please let me know if you’re looking for a author for your weblog. You have some really great articles and I feel I would be a good asset. If you ever want to take some of the load off, I’d absolutely love to write some material for your blog in exchange for a link back to mine. Please blast me an e-mail if interested. Thank you!

  63. I blog frequently and I genuinely thank you for your information. The article has truly peaked my interest. I will bookmark your site and keep checking for new information about once per week. I subscribed to your Feed as well.

  64. I simply wished to thank you very much once more. I’m not certain the things I would’ve tried without the entire creative ideas contributed by you on such topic. Previously it was a very frightening matter in my opinion, however , spending time with this specialized mode you solved that took me to leap for gladness. Now i’m grateful for the work and as well , have high hopes you realize what an amazing job that you’re putting in educating most people all through your blog. Probably you haven’t come across all of us.

  65. I blog frequently and I really appreciate your content. This article has truly peaked my interest. I’m going to take a note of your site and keep checking for new information about once per week. I opted in for your RSS feed too.

  66. Fantastic blog you have here but I was wondering if you knew of any community forums that cover the same topics talked about here? I’d really love to be a part of online community where I can get responses from other experienced people that share the same interest. If you have any recommendations, please let me know. Bless you!

  67. Please let me know if you’re looking for a article author for your site. You have some really good articles and I think I would be a good asset. If you ever want to take some of the load off, I’d really like to write some content for your blog in exchange for a link back to mine. Please blast me an email if interested. Cheers!

  68. This design is steller! You obviously know how to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Wonderful job. I really loved what you had to say, and more than that, how you presented it. Too cool!

  69. An impressive share! I have just forwarded this onto a colleague who had been conducting a little homework on this. And he in fact ordered me lunch because I discovered it for him… lol. So let me reword this…. Thanks for the meal!! But yeah, thanx for spending time to discuss this topic here on your website.

  70. After looking over a handful of the articles on your website, I honestly like your technique of blogging. I added it to my bookmark website list and will be checking back in the near future. Please check out my web site as well and tell me how you feel.

  71. I’m not sure where you are getting your info, however great topic. I needs to spend a while finding out much more or figuring out more. Thanks for great info I used to be searching for this info for my mission.

Оставить ответ

Ваш адрес email не будет опубликован. Обязательные поля помечены *