I just installed AWS CLI on a few servers with Ubuntu 14 on. The last server I installed it on, cannot access the AWS CLI from the terminal and run commands.

This does not work:

aws --version

You need to do this:

/home/user/.local/lib/aws/bin/aws --version

How can I make aws --version work in the same manner it does on all the other servers?

  • 1
    It's probably your PATH variable, check it on your other servers and see if it matches. If not add /home/user/.local/lib/aws/bin/ to it. – coteyr Jul 20 '15 at 16:39

PATH Variables needed to be added.

cd ~

vi .profile

Append: :/home/user/.local/lib/aws/bin/ Behind: PATH=":$HOME/bin

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then

aws --version

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.