Consolidated bash commands where possible