ls - List files in the image¶
List files and directories in the session image without spawning a sandbox.
Examples¶
# List root directory
contree ls /
# List a specific directory
contree ls /etc/nginx
# JSON output with file metadata
contree -f json ls /usr/bin
Help output¶
Output¶
Each entry shows path, size, permissions (octal), owner, group, modification
time, and type (d for directory, l for symlink, - for file).
This command reads the image filesystem directly – no sandbox is started and no resources are consumed.
See also¶
cat - Show file content from the image – view file contents
cp - Download a file from the image – download a file locally
Your First Sandbox – inspecting the filesystem