Editing the Command Line

Several command-line features assist you with entering commands. For instance, wildcards are available, the same wildcards that you can use with Windows. The asterisk (*) can be substituted for a string of characters and a question mark (?) can be substituted for a single character. Thus, the following command lists all filenames that include var and end with a single character:

					ls *var?
xvar1
Study_varA

File and directory names are completed for you when you press the Tab key. As soon as you have typed enough of the name so that it refers to only one file, press the Tab and the remainder of the filename is filled in on the command line.

The shell stores a history of the commands you enter. You can see it by typing ...

Get Spring Into Linux® 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.