Remember, non-expert here. I was a Solaris sysasmin 1997-2001 or so, could do some piping and scripting, but haven't done that since, so forgot. duh, since this is going directly to you, not just through list server, I can include a screenshot of the directory structure. I could not find a way to do ls recursively, but NOT list files, just directories, and preferrably only x deep. Remember a bazillion cache files and other cr*p. a web search suggested "dir". same issue. I tried listing with dir to file, sorting to get hopefully just what I wanted together, but too long (12.5 mb) to delete other stuff. At one time I could do a shell script to intelligently select lines, but I've forgotten how. Had not heard of tree, was not installed, installed it, but: carey@OptiPlex-7050:~/snap/brave$ tree ? ? [error opening dir] 0 directories, 0 files carey@OptiPlex-7050:~/snap/brave$ tree . [error opening dir] 0 directories, 1 file carey@OptiPlex-7050:~/snap/brave$ man tree No manual entry for tree Carey
On 08/12/2025 5:17 PM CDT D. Hugh Redelmeier via Talk <talk@lists.gtalug.org> wrote:
From: CAREY SCHUG via Talk <talk@lists.gtalug.org>
(I've been trying to find a way to copy the directory structure from my file manager to plain text to post here, since I can't send images, no luck)
ls(1)? tree(1)?