Study Notes
  • Introduction
  • Architecture & System Design
    • Messaging Systems
    • RPC Frameworks
    • Scalable Web Application Architecture
    • Parallel vs Concurrent
    • Concurrency
    • Load Balancing - Nginx
    • REST API
    • WebSockets
    • Streaming
    • Serialization
  • Programming Language
    • JavaScript & Node.js
      • Node.js Promises
      • Node.js Async Flow Control
      • Node.js Profiling
    • Java
    • Erlang
    • Python
    • Golang
      • Go Runtime Scheduler
  • Software Engineering
    • Design Patterns
    • Unit Testing
    • Legacy Code
    • Agile & Scrum
  • Database
    • NoSQL
    • SQL
  • DevOps & Tools
    • Version Control - Git
    • Shell - zsh, bash
    • Docker
    • Linux Package Management - YUM
    • Linux Command Line Tools
  • Security
    • OWASP Security
  • AI, ML, DL, CV, NLP
    • Deep Learning
Powered by GitBook
On this page
  • Handy Tips & Commands
  • "&&", "||" and ";" when chaining commands
  • Reference

Was this helpful?

  1. DevOps & Tools

Linux Command Line Tools

PreviousLinux Package Management - YUMNextOWASP Security

Last updated 5 years ago

Was this helpful?

Handy Tips & Commands

"&&", "||" and ";" when chaining commands

Assume there is command1 && command2.

In this case command2 will be executed if and only if command1 returned zero exit status.

Similarly, command1 || command2 can be used to run command2 only if command1 returned a nonzero exit status.

; is just a command separator. Thus command2 will be executed whatever command1 returned.

Reference

Linux工具快速教程