Common Agent Installation macOS Terminal Problem

When installing the Automox agent on macOS via the terminal, it's essential to ensure you're using the correct shell, bash, rather than the default zsh. Using the wrong shell can cause unexpected behavior during the installation process. This guide will walk you through identifying and switching shells and successfully installing the Automox agent.

mceclip0.png

Why Use bash?

While macOS uses zsh as the default shell starting from macOS Catalina, some commands and scripts, including the Automox agent installation, may perform better in bash. Switching to bash ensures compatibility.

Identifying Your Current Shell

1. Open the Terminal app on your macOS device.

2. Check your current shell by running: 

echo $SHELL
  • If the output shows /bin/zsh, you're using the zsh shell.

Switching to bash

1. Enter the following command to switch to bash: exec bash

2. Confirm the change by running: echo $SHELL

  • The output should now show /bin/bash.

Installing the Automox Agent

Once in the bash shell, proceed with the Automox agent installation.

Reverting to zsh

If you prefer to return to zsh after the installation, run:

exec zsh
Was this article helpful?
0 out of 0 found this helpful