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