Section 8.5. Filename Completion


[Page 307 (continued)]

8.5. Filename Completion

Like the Korn shell, the C shell provides a way to avoid typing a long filename on a command line. Whenever you type part of a filename, you can strike the Tab key and, if the part of the filename you have typed so far uniquely identifies a file, the rest of the name will be added automatically. If the text does not uniquely identify a file, any text that can be completed (i.e., that is unique to all possibilities) will be filled in. You can also type a Control-D to see a list of the filenames that currently match the part of the name you have typed. For example:

% ls -al .log^D      ...show my options .login     .logout % ls -al .login      ...shell retyped, I added "in" 





Linux for Programmers and Users
Linux for Programmers and Users
ISBN: 0131857487
EAN: 2147483647
Year: 2007
Pages: 339

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net