DEV Community

Discussion on: Run multiple commands in one line with `;`, `&&` and `||` - Linux Tips

Collapse
 
thefluxapex profile image
Ian Pride

You're welcome; I just thought it would add a little perspective of how this concept can be used in various ways. Some might always prefer to use if/else statements to be safe & sometimes it is necessary, but I find myself using this type of 'shortcut' more times than not when it's safe to use.