UC3M

Telematic/Audiovisual Syst./Communication Syst. Engineering

Systems Architecture

September 2017 - January 2018

13.4.5.  Editing commands

The interpreter facilitates typing commands through the use of the cursor keys. The up and down keys traverse the list of commands previously written in the session. This is very useful to repeat the execution of a command. Furthermore, the horizontal arrow keys allow to traverse the characters in a command to modify it. You may also use keyboard shortcuts such as CRTR-A to position the cursor at the beginning of the line or CTRL-E to position it at the end.

The Tabulator key can be used when writing file names to ask the interpreter to finish them automatically. For example, if in a folder there is a file with name ExecutionResults, if you type only Ex and there is no other file on that folder that begins with these two letters (that is, the prefix is unambiguous), when you press the tabulator, the interpreter completes the file name. If there were more than one file with the same prefix, still the interpreter would complete up to the largest common prefix among them. This mechanism is very efficient to type commands very efficiently.

We recommend you to try this functionality in your computer creating the files ResultsFromExecution1.txt and ResultsFromExecution2.txt, and using them as arguments for different commands. Check that, even though the names are large, the tabulator allows you to manage them with only a few key strokes.