← 返回命令列表

Linux command

stree 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Display tree structure of an S3 bucket

stree [my-bucket] -p [my_profile]

Show tree with depth limit of 3

stree [my-bucket/data] -p [my_profile] -L 3

Display tree using LocalStack

stree [my-bucket] -l

说明

stree is a CLI tool that displays the directory tree structure of AWS S3 buckets with colorized output. It supports custom AWS profiles, region configuration, depth-level control, LocalStack for local testing, and MFA role-switching capability.

参数

-p _PROFILE_
AWS profile name to use.
-r _REGION_
AWS region.
-L _LEVEL_
Maximum directory depth to display.
-l
Use LocalStack for local testing.

FAQ

What is the stree command used for?

stree is a CLI tool that displays the directory tree structure of AWS S3 buckets with colorized output. It supports custom AWS profiles, region configuration, depth-level control, LocalStack for local testing, and MFA role-switching capability.

How do I run a basic stree example?

Run `stree [my-bucket] -p [my_profile]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -p _PROFILE_ do in stree?

AWS profile name to use.