Skip to content

Instantly share code, notes, and snippets.

@liejuntao001
Created November 28, 2019 18:21
Show Gist options
  • Save liejuntao001/34561dcb2f42bfc209bc8f4946698826 to your computer and use it in GitHub Desktop.
Save liejuntao001/34561dcb2f42bfc209bc8f4946698826 to your computer and use it in GitHub Desktop.
# list
s3cmd ls s3://os-test/
# put a file
s3cmd put commit-msg s3://os-test/
# put a file as public
s3cmd put commit-msg s3://os-test/ -P
# put as private
s3cmd put commit-msg s3://os-test/
# count objects
s3cmd ls s3://os-test/ --recursive | wc -l
s3cmd ls s3://cnh-backup-test/ --recursive | wc -l
# check bucket size and object count
s3cmd du s3://cnh-backup-test/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment