• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Shortcut key to see possibilities of commands in bash?

 
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Today i accidently hit the shortcut key.
then it asked me to display all the possibilities , i did Y.

then it have shown me all the list of command.

Now i do not know which shortcut key i actually pressed.
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It sounds like you are talking about command line completion which is normally the tab key in bash.

Normally if you have typed part of a command or part of a filename and press tab, bash will complete the command or filename if it is unambiguous. If it is ambiguous then bash will only complete as much of the command or filename as it can to the point where it becomes ambiguous. Pressing tab a second time will then show you all the possible expansions that bash knows about.

If you press tab at a blank prompt then you have the potential of using every command bash knows of - far too ambiguous, so nothing will happen. Press tab a second time, and you should get a warning about how many potential commands are going to match - in my case bash asked me if I really wanted to "Display all 1816 possibilities? (y or n)"

This can be customized considerably, and can be a very useful tool when you get used to it.
 
Amandeep Singh
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you ..i was looking for double press tab only
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic