0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Linux][command] コマンド制御演算子_;, &&, ||

Last updated at Posted at 2025-04-16

コマンド制御演算子

書式 説明
コマンドA ; コマンドB 逐次実行:コマンドAの終了を待ってから、コマンドBを実行します。Aの成否に関係なくBも実行されます。
例:echo Hello ; echo World
コマンドA && コマンドB AND(かつ):コマンドAが正常終了したときだけ、コマンドBを実行します。
例:make && echo "ビルド成功"
コマンドA || コマンドB OR(または):コマンドAが失敗したときだけ、コマンドBを実行します。
例:make || echo "ビルド失敗"

Ping-t

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?