Horje
two bash coomand in same line Code Example
two bash coomand in same line
# cmd1 && cmd2
$ cd myfolder && ls  # run ls only after cd to myfolder

# cmd1; cmd2
$ cd myfolder; ls   # no matter cd to myfolder successfully, run ls

# cmd1 || cmd2
$ cd myfolder || ls  # if failed cd to myfolder, `ls` will run
Source: dev.to




Shell

Related
how to create a sh file to run terminal commands Code Example how to create a sh file to run terminal commands Code Example
git split commit into two Code Example git split commit into two Code Example
create new branch Code Example create new branch Code Example
exit status bash Code Example exit status bash Code Example
opensuse package manager command line Code Example opensuse package manager command line Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11