[root@techrunnr1 ~]# ./ossutil64 config
The command creates a configuration file and stores credentials.
Please enter the config file path(default /root/.ossutilconfig, carriage return will use the default path. If you specified this option to other path, you should specify --config-file option to the path when you use other commands):
No config file entered, will use the default config file /root/.ossutilconfig
For the following settings, carriage return means skip the configuration. Please try "help config" to see the meaning of the settings
Please enter language(CH/EN, default is:EN, the configuration will go into effect after the command successfully executed):EN
Please enter accessKeySecret:**********************
Please enter stsToken:
Please enter endpoint:https://oss-me-east-1.aliyuncs.com
Please enter accessKeyID:**********
[root@techrunnr1 ~]#
endpoint: Endpoint of the region where the bucket belongs to. For more information, see Regions and endpoints.
stsToken: This option is required only if we are using temporary STS token to access the OSS bucket.Otherwise, we can leave it blank.
Now configuring ossutil has been done.Let’s list the OSS bucket through ossutil command.
./ossutil64 ls
[root@techrunnr1 ~]# ./ossutil64 ls
CreationTime Region StorageClass BucketName
2019-05-06 06:14:36 +0000 UTC oss-me-east-1 Standard oss://sample-bucket1
Bucket Number is: 1
0.071467(s) elapsed
[root@techrunnr1 ~]#
In web console,lets see
Now let’s see how to download one file from OSS bucket to local directory through command line using ossutil.