This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 844
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: 11404
    
  81

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: 844
thank you ..i was looking for double press tab only
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Shortcut key to see possibilities of commands in bash?
 
Similar Threads
Eclipse shortcut keys
call batch or executable script with shortcut key in Win XP
javascript events and global shortcuts
Eclipse 2 - Java Build Path
Shortcut key to set focus on JFrame