Monitoring

stree – visualize the directory tree structure of an S3 bucket

stree is a CLI tool designed to visualize the directory tree structure of an S3 bucket.

By inputting an S3 bucket/prefix and utilizing various flags to customize your request, you can obtain a colorized or non-colorized directory tree right in your terminal.

Whether it’s for verifying the file structure, sharing the structure with your team, or any other purpose, stree offers an easy and convenient way to explore your S3 buckets.

This is free and open source software.

Features include:

  • Colorized Output: By default, stree provides a colorized tree structure, making it easy to differentiate between directories and files at a glance. This feature can be turned off with the -n or --no-color flag.
  • LocalStack Support: stree supports local testing with LocalStack, a fully functional local AWS cloud stack, thanks to the --local and --endpoint-url flags.
  • Custom AWS Profile and Region: Specify the AWS profile and region with the --profile and --region flags to override the default settings as needed.
  • Depth level Specification: With the --L flag, you can specify how many levels deep in the directory structure you’d like to visualize. This offers a more focused view, especially for large S3 buckets.
  • Role Switching Support: stree is now enhanced with the ability to switch AWS roles with MFA using the –mfa flag. This makes it easier to manage and view S3 buckets that require different IAM roles for access.
  • Environment Variable Support: stree now prioritizes environment variables for AWS Profile and Region settings. The tool will use the AWS_PROFILE environment variable if set, falling back to the default profile otherwise. Similarly, it will use the AWS_REGION or AWS_DEFAULT_REGION environment variables for the AWS region, if available.
  • Full Path Display: With the -f flag, the full path of each file is now displayed in the output, making it easier to identify the location of each item within the S3 bucket.
  • Filters S3 objects using inclusion and exclusion patterns.
  • Displays object sizes in bytes or human-readable units.
  • Can display object modification timestamps and ownership information.
  • Supports directory-only listings.
  • Writes generated directory trees to a specified output file.

Website: github.com/orangekame3/stree
Support:
Developer: Takafumi Miyanaga
License: MIT License

stree is written in Go. Learn Go with our recommended free books and free tutorials.


Related Software

S3 Terminal Tools
s5cmdS3 and local filesystem execution tool
clawsTerminal user interface for managing AWS resources
s3cmdManage objects in Amazon S3 storage
RcloneCommand line program to sync files and directories
STUBrowse buckets and objects directly from your terminal, preview files, and more
streeVisualize the directory tree structure of an S3 bucket
MinIO ClientWork with object storage from a Unix-style shell
s3tuiSimple S3 CLI client for file transfers
S3ryAWS S3 interactive terminal client

Read our verdict in the software roundup.

Alternatives to tree
brootNext gen tree explorer and customizable launcher
alderMinimal implementation of the tree command with colors
lstrFast, minimalist directory tree viewer
ictreeLike tree but interactive
treModern alternative to the tree command
twfStandalone tree view explorer inspired by fzf
TreeDisplay a tree view of directories with color support
as-treePrint a list of paths as a tree of paths
gtreeGenerate trees and directories
streeVisualize the directory tree structure of an S3 bucket
lstreeWrapper script around ls to display a nice tree structure
tree++Display a tree with icons
treexFast, and customizable CLI directory viewe
wisuFast, minimalist directory tree viewer, written in Rust
dirmapTool for generating a directory map
structSmarter tree command

Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted