Using Completion in the ksh Shell

ksh is another shell that offers command completion. You type part of a command, press twice, and ksh completes the command for you (see Code Listing 3.12). Using command completion in ksh isn’t as easy as it is in zsh or bash, but the results are the same.

Code Listing 3.12. After listing the files and directories, we set our options, then successfully completed a command. The ^[^[ is how appears on the screen when the shell doesn’t know to use it to complete commands.
$ ls
Complete NewProject bogus2 files
→ public_html testme
Completed    News    chat.conf
→ ftp   puppy
Mail access dead.letter
→ mail  temp
$    cd pub^[^[ ...

Get Unix Third Edition: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.