<p>In the KornShell (ksh) on <b>AIX UNIX Version 5.3</b> with the editor mode set to vi using:</p>

<pre><code>set -o vi
</code></pre>

<p>What are the key-strokes at the shell command line to autocomplete a file or directory name?</p>

[{'answer_id': 81135, 'author': 'paxdiablo', 'author_id': 14860, 'author_profile': 'https://Stackoverflow.com/users/14860', 'pm_score': 5, 'selected': True, 'text': '<p>ESC\\ works fine on AIX4.2 at least.  One thing I noticed is that it only autocompletes to the unique part of the file name.</p>\n\n<p>So if you have the files x.txt, x171go and x171stop, the following will happen:</p>\n\n<pre><code>Press keys:           Command line is:\nx                     x\n&lt;ESC&gt;\\                x\n1                     x1\n&lt;ESC&gt;\\                x171\ng&lt;ESC&gt;\\               x171go\n</code></pre>\n'}, {'answer_id': 86599, 'author': 'Brian Deterling', 'author_id': 14619, 'author_profile': 'https://Stackoverflow.com/users/14619', 'pm_score': 2, 'selected': False, 'text': "<p>Extending the other answers: &lt;ESC&gt;* will list all matching files on the command line. Then you can use the standard vi editing commands to remove the ones you don't care about.  So to add to the above table:</p>\n\n<pre><code>&lt;ESC&gt;&lt;shift-8&gt;             x.txt x171 x171go\n</code></pre>\n\n<p>Then use backspace to go get rid of the last two, or hit &lt;ESC&gt; again and use the h or b to go backwards and dw to delete the ones you don't want.</p>\n"}]
['https://Stackoverflow.com/questions/81022', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/381/']