Created
November 28, 2019 18:21
-
-
Save liejuntao001/34561dcb2f42bfc209bc8f4946698826 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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