Show the directory tree structure of any folder with a single command.
find <DIR_PATH> -maxdepth 3 | sort | sed 's|[^/]*/| |g'
Arguments:
| # | Name | Description |
|---|---|---|
| --- | ------ | ------------- |
| 1 | DIR_PATH | Path to the directory to display |
find /home/user/project -maxdepth 3 | sort | sed 's|[^/]*/| |g'
Output:
project
src
main.py
utils.py
README.md
共 1 个版本