aspose file tools*
The moose likes Linux / UNIX and the fly likes Shortcut key to see possibilities of commands in bash? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Shortcut key to see possibilities of commands in bash?" Watch "Shortcut key to see possibilities of commands in bash?" New topic
Author

Shortcut key to see possibilities of commands in bash?

Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 845
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.


SCJP 1.4, SCWCD 5, SCBCD 5, OCPJWSD 5,SCEA-1, Started Assignment Part 2
My blog- http://rkydesigns.blogspot.com
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11509
    
  95

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.


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 845
thank you ..i was looking for double press tab only
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Shortcut key to see possibilities of commands in bash?