s4cmd command not found

In this troubleshooting guide we learn how to fix s4cmd command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

s4cmd: command not found

or when using sudo you get the following error message

sudo: s4cmd: command not found

Solutions to s4cmd: command not found

How To Fix s4cmd: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu s4cmd is provided by s4cmd package.

s4cmd is:

The s4cmd tool provides a command line interface for interaction with Amazon’s S3 cloud storage service. It is intended as an alternative to the existing s3cmd tool, enhancing performance and support for large files, and coming with a number of additional features and fixes.

s4cmd strives to be compatible with the most common usage scenarios for s3cmd. It does not offer exact drop-in compatibility, due to a number of corner cases where different behavior seems preferable, or for bugfixes.

To fix this problem, we can install more using the command below.

sudo apt-get -y install s4cmd

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install s4cmd.

sudo apt -y install s4cmd

Or if you have aptitude installed you can use the following command.

sudo aptitude install s4cmd

Summary

In this tutorial we learn how to fix s4cmd command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.