Help Center/
Object Storage Service/
Tool Guide (obsutil) (ME-Abu Dhabi Region)/
Getting Started/
Quick Start
Updated on 2023-03-16 GMT+08:00
Quick Start
This section uses the Linux OS as an example to describe how to use obsutil to perform basic data operations in OBS. For details, see Figure 1.
Prerequisites
- You have obtained obsutil and completed initial configuration.
- The directory saving the tool is accessed.
Procedure
- Run the ./obsutil mb obs://bucket-test command to create a bucket named bucket-test in the region.
./obsutil mb obs://bucket-test Create bucket [bucket-test] successfully!
- Run the ./obsutil cp /temp/test.txt obs://bucket-test/test.txt command to upload the test.txt file to bucket bucket-test.
./obsutil cp /temp/test.txt obs://bucket-test/test.txt Parallel: 5 Jobs: 5 Threshold: 52428800 PartSize: 5242880 Exclude: Include: VerifyLength: false VerifyMd5: false CheckpointDir: /temp/.obsutil_checkpoint test.txt:[==============================================] 100.00% 48.47 KB/s 0s Upload successfully, 4.44KB, /temp/test.txt --> obs://bucket-test1/test.txt
- Run the ./obsutil cp obs://bucket-test/test.txt /temp/test1.txt command to download test.txt from bucket bucket-test to a local PC.
./obsutil cp obs://bucket-test/test.txt /temp/test1.txt Parallel: 5 Jobs: 5 Threshold: 52428800 PartSize: 5242880 Exclude: Include: VerifyLength: false VerifyMd5: false CheckpointDir: /temp/.obsutil_checkpoint test.txt:[=============================================] 100.00% 775.52 KB/s 0s Download successfully, 4.44KB, obs://bucket-test1/test.txt --> /temp/test1.txt
- Run the ./obsutil rm obs://bucket-test/test.txt -f command to delete object test.txt from bucket bucket-test.
./obsutil rm obs://bucket-test/test.txt -f Delete object [test.txt] in the bucket [bucket-test] successfully!
- Run the ./obsutil rm obs://bucket-test -f command to delete bucket bucket-test.
./obsutil rm obs://bucket-test -f Delete bucket [bucket-test] successfully!
Parent topic: Getting Started
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot