What does then mean in linux

angryTom
Release: 2019-11-06 15:29:24
Original
6297 people have browsed it

What does then mean in linux

What does then mean in linux

Then in English means then, in linux then is a structured command used with if. The most basic if-then structure is if commond then commonds fi, in which if the statement after if is successfully executed, it will jump to the statement after then, otherwise it will not jump.

The most basic if-then structure:

if commond then 
commonds
fi
Copy after login

In shell, it is based on the exit status of the command. If the command is successfully executed and the status is 0, the command after then will be executed. If the command is not successfully executed and the status is a value other than 0

, the command after then will not be executed. The bash shell will move to the next command in the script.

Recommended: Getting started with Linux system

The above is the detailed content of What does then mean in linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template