June 2025
Beginner to intermediate
1180 pages
37h 48m
English
Usually you start commands simply by entering the command name. In addition to that, there are some options to execute multiple commands in a row (see Table 7.4).
|
Command |
Function |
|---|---|
|
cmd1; cmd2 |
Executes the commands one after the other |
|
cmd1 && cmd2 |
Executes command 2 if command 1 was successful |
|
cmd1 || cmd2 |
Executes command 2 if command 1 returns an error |
|
cmd & |
Starts the command in the background |
|
cmd1 & cmd2 |
Starts command 1 in the background, command 2 in the foreground |
|
(cmd1 ; cmd2) |
Executes both commands in the same shell |
Table 7.4 Executing Commands
Scripts or programs stored in the currently active directory cannot be executed easily ...
Read now
Unlock full access