ossutil64常用命令
时间: 2023-11-15 09:58:47 浏览: 249
ossutil64是阿里云对象存储OSS提供的一款命令行工具,用于管理OSS上的对象。以下是ossutil64的常用命令:
1.上传文件或文件夹:./ossutil cp localfile.txt oss://examplebucket/desfolder/ 或 ./ossutil cp -r localfolder/ oss://examplebucket/desfolder/
2.下载文件或文件夹:./ossutil cp oss://examplebucket/desfolder/examplefile.txt localfolder/example.txt 或 ./ossutil cp -r oss://examplebucket/desfolder/ localfolder/
3.删除文件或文件夹:./ossutil rm oss://examplebucket/desfolder/examplefile.txt 或 ./ossutil rm -r oss://examplebucket/desfolder/
4.列举文件或文件夹:./ossutil ls oss://examplebucket/desfolder/ 或 ./ossutil ls -a oss://examplebucket/desfolder/
5.创建或删除存储空间:./ossutil mb oss://examplebucket/ 或 ./ossutil rb oss://examplebucket/
6.设置或查看存储空间访问权限:./ossutil acl oss://examplebucket/ 或 ./ossutil getacl oss://examplebucket/
7.设置或查看存储空间生命周期规则:./ossutil lifecycle oss://examplebucket/ 或 ./ossutil getlifecycle oss://examplebucket/
8.设置或查看存储空间跨域规则:./ossutil cors oss://examplebucket/ 或 ./ossutil getcors oss://examplebucket/
9.设置或查看存储空间防盗链规则:./ossutil referer oss://examplebucket/ 或 ./ossutil getreferer oss://examplebucket/
--相关问题--:
1.如何使用ossutil64上传大文件?
2.如何使用ossutil64设置存储空间的访问权限?
3.
阅读全文