forked from docs/doc-exports
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: weihongmin1 <weihongmin1@huawei.com> Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
1.5 KiB
1.5 KiB
Can I Use obsutil to Directly Save a Listing Result to a Local File?
obsutil does not allow you to directly save a listing result to a local file, but you can redirect a listing result displayed on the screen in standard output to a specified local file by relying on the redirection supported by OS. The following uses the listing of objects in a bucket as an example:
- In Windows, run the following redirection command in the CLI:
obsutil ls obs://bucketName -limit=0 > D:/result.txt
- In Linux or macOS, run the following command:
./obsutil ls obs://bucketName -limit=0 > /root/result.txt
Parent topic: FAQs
