

Subscribe to UbuntuBuzz Telegram Channel to get article updates directly.

You may choose between three popular video formats: WKV, WEBM, or OGV. In that case, you can group the commands using for this.This article gives three command lines of ffmpeg as example to capture video + audio of your desktop screen in GNU/Linux. You might also be interested in: How To Find Files Modified In The Last N Days Or Minutes Using find For example (once again, you can have any number of commands): What if you want to run a command after the previous one has finished running, but only if this previous command has failed (if it returns an exit status other than 0). Example (you can have any number of commands): If you don't care about the exit status of the previous command, and you just want to run a command after the previous one has finished, use the separator.

For example (you can have any number of commands): To run multiple commands successively (wait for the previous one to finish) only if the previous command exited successfully, use the & operator between the commands. You might also like: How To Repeat A Command Every X Seconds On Linux Let's take a look at each of these cases below.
