Skip to main content

Linux: compound commands

command1 ; command2 ; command3

command1 is executed, then command2, and then command3

command1 && command2 && command3

command2 is executed only if command1 run successfully (exit code is 0), command3 is executed only if command2 run successfully (exit code is 0)

command1 || command2 || command3

command2 is executed only if command1 exit code is 0 (failure), command3 is executed only if command2 exit code is 0 (failure)

Popular posts from this blog

IIS: Delete cached files on server running IIS

Delete cached files on server running IIS When changing css, javascript files, check to delete if IIS still caches old files in the default folder C:\inetpub\temp\IIS Temporary Compressed Files\<sitename>\$^_gzip_D^\ Apply to: IIS 8.5

Linux command: du - disk usage

Where have all my storage gone? du summarize disk usage of the set of FILEs, recursively for directories.

ManageEngine ServiceDesk Plus - Reset password

Let's reset the default administrator's password to 'admin'