list_directories
List and sort directories in a specified Linux path to organize and analyze file system contents for system administration tasks.
Instructions
List directories under a specified path with various sorting options.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the directory to analyze | |
| order_by | No | Sort order - 'size', 'name', or 'modified' (default: 'name') | name |
| sort | No | Sort direction - 'ascending' or 'descending' (default: 'ascending') | ascending |
| top_n | No | Optional limit on number of directories to return (1-1000) | |
| host | No | Remote host to connect to via SSH |