Suppose an operation is executed from the cli, will the process continue to run or cease when the user cancels it and closes their CLI/terminal?
Example
E.g. Apparently counting ~50 million files in a bucket takes around an hour. If the user ran the operation (i.e. aws s3 ls s3://mybucket/ --recursive | wc -l
), then canceled the operation and closed their terminal, would the operation continue to run (and therefore consume resources), or would it cease as soon as the command is cancelled on the user's CLI?
What I know so far
I do not know a lot, but understand that some commands, when executed, cannot be stopped (even if you close the Terminal) - that is, they're running 'detached'