Compound commands

From Sugar Labs
Revision as of 22:37, 8 March 2012 by Quozl (talk | contribs)
Jump to navigation Jump to search

A compound command is a list of commands that are tied together so that they work as one.

For example:

date && \
echo success

The date command is run, then if it works the echo command is run. If the date command were to fail, the echo command would not be run. For deep technical detail, see the BASH manual.

Copy and Paste

How to copy and paste a compound command.

Hold the cursor in the space before the first line, press down upon the mouse button, move the cursor to the line below the last line, then release the mouse button.

Look at the attached image. The green dot is where the mouse button should be pressed, and the red dot is where it should be released. Notice how the text has been highlighted. This shows the area that would be copied.

Then the user should select Copy in their web browser, and then select Paste in their Terminal.

Usually, the web browser keyboard shortcut for Copy is Ctrl/C, and the Terminal keyboard shortcut is Ctrl/Shift/V.