In my .bash_profile I have created alias to commands that I run often.
What if I want to group together multiple commands together, and they should run in serial one after the other.
How would I do this?
You can create a function instead of an alias:
You can even pass parameters (
This approach is more flexible than creating an
Concatenate them with
Note that chaining it this way the commands depend on the exit state of their preceding one, so if any command would fail, the execution of the whole line would stop at that point.