tencent cloud

All product documents
Cloud Object Storage
Viewing Contents of an Object - cat
Last updated: 2024-11-01 20:59:19
Viewing Contents of an Object - cat
Last updated: 2024-11-01 20:59:19
The cat command is used to view the contents of an object.

Command Syntax

./coscli cat cos://<bucket-name>/<key> [flag]
The cat command includes the following parameters:
Parameter Format
Description
Example
cos://<bucket-name>/<key>
Specifies the target bucket, which is accessible by using the bucket alias or bucket name configured in the configuration file as detailed in Download and Installation Configuration. If you use the bucket name for access, you also need to include the endpoint flag.
Access with the bucket alias: cos://example-alias/test.txt
Access with the bucket name: cos://examplebucket-1250000000/test.txt
The cat command includes the following optional flags:
Flag Abbreviation
Flag Name
Description
-h
--help
Views the usage of this command.
Note:
For more general options for this command (such as switching buckets or user accounts), see Common Options.

Operation Example

Viewing the contents of the test.txt file in the bucket1 bucket

./coscli cat cos://bucket1/test.txt

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon