Skip to main content

Questions tagged [tree]

0 votes
1 answer
155 views

How to change folder color in terminal outout shell in macOs also the output have SHEll color code

macOS Sonoma v 14.16.1 When run command to display some files/folders in zsh shell such as Tree for eg. > tree . -L 2 -a -I .git output you can see in image that folder name comes in very dark in ...
xkeshav's user avatar
  • 385
1 vote
1 answer
141 views

Why are UTF-8 paths (differently) escaped in outputs across core CLI utilities?

Let's say that I'm a psychopath who names my files like: [-] `{title: "Non-Metadata", id: "s4a4ji"}`{.JSON5}.dir That's my best attempt at making the most hideous plausible ...
RokeJulianLockhart's user avatar
-1 votes
1 answer
163 views

How to expand/collapse all treeview nodes in microsoft documentation?

I'm studying several topics in the Microsoft documentation and often the expanded or collapsed nodes get in my way. Would anyone know how to make all nodes expand or collapse automatically? A link for ...
Cont Grrla's user avatar
0 votes
0 answers
635 views

unable to install tree with brew in macBook bro M2

I am trying to install tree command on my MacBook pro M2 machine but seems like brew is not working brew install tree Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/...
umair mehmood's user avatar
0 votes
2 answers
2k views

How do I copy the "tree" command output from Linux Terminal without losing the red/blue/white colours of the folder/file tree?

When copying the output of the "tree" command from the Terminal, the colours that were shown in the terminal get lost, whether I put it here or in a Google Drive Doc. Example: tree /var/log/...
questionto42's user avatar
  • 2,753
0 votes
1 answer
2k views

How to show the tree of a root folder only for the first child level, and then show for just one of the children the second child level as well

Setting down a guide about a repository, it should help the reader to look through folders and files in only that sub-folder which makes the core of the task at hand, and without any sub-sub-folders. ...
questionto42's user avatar
  • 2,753
1 vote
1 answer
4k views

Can I hide native tabs at the top of Firefox 91.51 esr (64 bit)?

I've been using Tree Style Tab on Firefox. Not sure how I ever worked without. There was a similar post (found here) that allowed the top tabs to be hidden, but it seems like that is no longer working....
Matthew Keaton's user avatar
-2 votes
2 answers
146 views

Server File System Structure

I'm new to vservers, so maybe I have a basic misunderstanding of file system structure or SSH in general. I want to navigate to my files, I have root access and my SSH terminal: root starts from Plesk ...
rivercity's user avatar
0 votes
3 answers
149 views

Two machines have the same "tree" but a different number of directories (under Properties)

I mirror a directory from server A to Server B nightly (the software doesn't matter in this case). If I run a tree command on both servers, import those trees into Word and run a compare, there is no ...
Ikmar's user avatar
  • 1
0 votes
1 answer
2k views

Windows tree-like command that can work over the network share

I need to obtain a folder tree structure on the Windows network share. I know that there is tree command, but it works only with drives. Is there analog that works with network shares? I.e. what I ...
ivan.ukr's user avatar
  • 113
0 votes
2 answers
2k views

Sorting the output of the Windows tree command?

I typically use bash in MSYS2 on Windows, however, I have to inspect a massive network share (on which the MSYS2 version of tree chokes - as in, takes forever), and so I'm forced to use the Windows ...
sdbbs's user avatar
  • 1,740
0 votes
0 answers
37 views

Explorer from within Excel

Basically, i want to create an extremely basic version of OneNote but with a retro style. I lack the programming skills to create this (ive been trying), but i was wondering if maybe it could be done ...
Christopher Moore's user avatar
1 vote
2 answers
2k views

Strange characters in a file generated by `tree`

Why does the file output of the tree program include strange characters? Example: $ tree -fFN --charset=utf8 -o list.txt test/ Contents of the list.txt file: <0x1b>[01;34mtest<0x1b>[00m ├─...
Samuele's user avatar
  • 43
0 votes
0 answers
57 views

How can I install tree on CentOS cluster?

How can I install tree program on a CentOS cluster where I do not have sudo privileges?
Rageful's user avatar
1 vote
1 answer
117 views

Display dirs tree based on a file content

$ find ./ | tac ./dir1/file -> "abc" ./dir1 ./dir2/file - > "abc" ./dir2 ./dir3/file -> "xyz" ./dir3/dir3_1/file - > "abc" ./dir3/dir3_1 ./dir3 or $ tree ├── dir1 │   └── file -> "...
roman-drozd-it's user avatar
0 votes
1 answer
236 views

Hierarchy path: Find orphans (children without parents)

I have hierarchy path values: FLEET FLEET \ AIR SYSTEM FLEET \ AIR SYSTEM \ COMPRESSOR - DRYER FLEET \ AIR SYSTEM \ VALVES FLEET \ AIR SYSTEM \ RESERVOIRS FLEET \ AIR SYSTEM \ HOSES - LINES - ...
User1974's user avatar
  • 185
4 votes
1 answer
26k views

How to list directories a certain level deep using the Tree command in PowerShell?

i would like to list all the directories down to a specified level with the Tree command. I like the way the Tree command sorts and uses the ASCII to show the directories or folders, and all the ...
Saucey_Saucey's user avatar
0 votes
0 answers
1k views

Linux tree command errors on opening hidden dirs

Why if I use the linux tree command against hidden dirs does it error? $ tree -ad '.ssh' .ssh [error opening dir] 0 directories but I can see it appears fine when the hidden dir is a subdirectory: $...
Mazerunner72's user avatar
7 votes
1 answer
10k views

How to exclude multiple file extensions in tree?

When using the tree command, I'd like to exclude listing *.png and *.svg from the output. The problem is that every bracket expansion I try doesn't work. Is it because of how tree processes ...
Hagbard Celine's user avatar
3 votes
2 answers
3k views

Why tree command mark symlink as recursive?

I have the following directories tree: . └── aaa └── bbb └── ccc And create symlink: ln -s ~/test/aaa/bbb slink After this i run tree command: tree -l and see . ├── aaa │   └── bbb │   ...
Kaa's user avatar
  • 33
0 votes
1 answer
614 views

tree command supporting wildcards

Is anyone aware of a 'tree' tool that supports wildcards? For example, I would like to see all .h and .cpp files in a 'tree' output. I don't want to use dir /s *.h *.cpp etc - I want to see a tree, ...
SparkyNZ's user avatar
  • 197
3 votes
1 answer
3k views

Is possible to download all the images from a website based on a increasing/incrementing number link? (e.g. 0001.png, 0002.png, etc.)

It's possible to download every image based on this link adress: http://d1ilncjhg2cjw.cloudfront.net/hub/assets/FULL_DROP_JAN_2015/large/SONY_FULL_DROP_05_00900.jpg http://d1ilncjhg2cjw.cloudfront....
m30l's user avatar
  • 43
73 votes
4 answers
135k views

Windows 10 Powershell tree command, how to show files

How do I list folders and files using the PowerShell tree command? Is it possible to color format the output for distinct files and folders?
Tuomas Toivonen's user avatar
1 vote
2 answers
942 views

How to extract files from tree using CMD

Let's say I have the following Tree: ├───animals │ │ hippopotamus.txt │ │ lion.txt │ │ │ └───dog │ poodle.txt │ terrier.txt │ └───food ├───fruit │ apple....
tuskiomi's user avatar
  • 853
16 votes
2 answers
8k views

List contents of tarball in tree format

Per the answers here I'm able to list the contents of my tarball in ls format. However, I'd like to be able to list them in tree format, i.e. something like the latter instead of the former: With tar:...
Vasu's user avatar
  • 273
0 votes
1 answer
976 views

How to retrieve a complete directory from a URL [duplicate]

Is there a method on Windows or Linux for downloading all files* within an online directory, specifically: http://download.opensuse.org/tumbleweed/ so I have a local repository I can work on? Any ...
Peter Carter's user avatar
1 vote
0 answers
733 views

Tree (Linux command): Custom output

In a documentation I saw screenshots of the tree command output like following: In my case I created the filesystem like in the screenshot but in the examples, there were Files and Subfolders in all ...
h0ch5tr4355's user avatar
  • 1,003
19 votes
1 answer
13k views

Ignore multiple folders using tree

The command tree -I 'node_modules' prevents the node_modules folder from appearing in the output. Likewise, tree -I 'app/ui/bower_components' prevents app/ui/bower_components from appearing in the ...
Jon's user avatar
  • 445
4 votes
1 answer
30k views

Cannot view all the output from Windows command

I entered the following in cmd: cd C:/Windows/System32 Then I ran the tree command. For some reason, when I scroll up I cannot view the complete command :( I counted and it only shows the last 298 ...
undo's user avatar
  • 6,139
3 votes
0 answers
1k views

view zip file content in tree command style [duplicate]

I am seeing the zip file content using unzip -l files.zip | less but it outputs in ls style , is it possible to to display output in tree command style
Ciasto piekarz's user avatar
2 votes
1 answer
905 views

Convert flow chart / decision tree to interactive pages

I have a flow chart or decision tree that I'd like people to walk through interactively. Basically, every question in the decision tree should be presented to the user and once he makes his choice, he ...
zyxxyz's user avatar
  • 21
-2 votes
1 answer
157 views

Windows application to view a remote web page as HTML/XML tree? [closed]

I was wondering if there were a Windows application that could take a URL, download the page and displays its structure in an HTML/XML tree. I mean this, but without having to first download the page ...
OverTheRainbow's user avatar
0 votes
1 answer
54 views

tree will not descend into directories

I just unpacked a tar file with a folder in it. I did a tree -F and saw asterisks popping everywhere. All of the files (even png, txt, etc) were marked as executable. So I did what any sensible human ...
user avatar
22 votes
6 answers
12k views

linux tree command limit number of files displayed in each directory

I want to use tree (or similar) to see the directory structure of a given directory as well as whether each subdirectory has files in it. So, how could I use tree but limit the maximum number of ...
synaptik's user avatar
  • 445
1 vote
2 answers
622 views

Linux: not able to see all options for `tree` command

I'm trying to list the contents of a directory recursively and in color using the tree -C command. However, my shell reports an error and it displays an info-entry for sed instead. The tree command ...
iceman's user avatar
  • 361
0 votes
1 answer
781 views

How to hide a directory and its contents on CentOS when running “tree?”

I need to hide a directory on CentOS 6 when using tree. I want to do that because I'm running the tree command to print the tree directory structure, but I don't want see a particular directory in my ...
Emilio Gort's user avatar
6 votes
2 answers
2k views

linux: is tree -i -f -L $depth supposed to be faster than find -maxdepth $depth?

I am querying specific directories to see if I find files with a specific pattern in them and I have been trying it with two different commands: Standard find command: find -L $unix_dir\*/ -maxdepth ...
719016's user avatar
  • 4,713
3 votes
2 answers
364 views

Why do so many programs use "foo.bar.baz = qux" style configurations?

I've noticed that tons of programs store configuration info in various hierarchial keys. For example, Firefox's about:config has keys like network.http.pipelining and network.http.pipelining.ssl and ...
cpast's user avatar
  • 2,533
-1 votes
2 answers
161 views

How to search a tree folder

How can I do a search of all directories calles i18n under trees like src/main/resources using find or any other unix command. Everything I'm trying doesn't work I'm looking for something like: $...
Alfergon's user avatar
  • 109
0 votes
1 answer
549 views

Making an alias for `tree -P '*name*'`

I'm creating an alias for the following command with the tree program: tree -P '*name*' This works exactly as I want. But when I create an alias for this command, the command behaves differently: It ...
Bentley4's user avatar
  • 2,008
1 vote
4 answers
227 views

Is there a program that will show a tree of the differences in two file trees? [closed]

In windows I manually back up from time to time by formatting my external drive and copying the contents of my data partition over. Inevitably there is a difference in the number and size of the files ...
Huckle's user avatar
  • 628
4 votes
2 answers
3k views

How to print dir tree of a 7zip archive?

Before extract archive.7z, I always check what in side: $ 7z l archive.7z ...SKIP... 2010-01-01 00:00:00 ..... 25856 7367 jsloader/resource/gre/modules/source-editor-textarea.jsm ...
kev's user avatar
  • 13.3k
1 vote
1 answer
3k views

gnu tree: downloading and installing on linux account with no root access?

I would like to download and install (compile) gnu tree on linux machine with no root access, but Googling GNU tree doesn't even give me a page where to download it to. Anyone?
719016's user avatar
  • 4,713
5 votes
4 answers
17k views

How can I store Windows "tree" command output in a file and retrieve it again?

When I do a tree > somefile.txt the file indeed contains the output of the tree command, but the lines drawn in the console are displayed as accented letters ÃÄÄÄ. Which encoding or mode do I have ...
Andrew J. Brehm's user avatar
6 votes
1 answer
7k views

Why don't ANSI symbols work in PuTTY/Debian?

The awesome application tree, which I installed in Debian with apt-get install tree, has the option of drawing its output using ANSI graphics. Its output looks like this now: . tqq node_modules x ...
Hubro's user avatar
  • 6,086
86 votes
2 answers
130k views

Tree command list one level all files

How can I use the tree command to list current directory as a tree? If I do tree -L 1 It only lists the directories, how can I get it to show the files as well?
Nix's user avatar
  • 971
498 votes
14 answers
450k views

Mac OS X equivalent of the Ubuntu "tree" command

Is there an equivalent to the Ubuntu tree command for Mac OS X?
Misha Moroshko's user avatar
29 votes
3 answers
28k views

Create symlinks recursively for a whole tree

I am seeking for a command that would re-create a whole tree of files in a different directory. I would prefer to have all symlinks absolute. Can I do that with a find and xargs? ;-)
lzap's user avatar
  • 1,021
1 vote
3 answers
717 views

Visualizing Parallel Branch and Bound Tree Exploration

I have written a parallel program that does a depth first branch and bound exploration of a tree. I can dump the id's (id's are like this 0, 00, 01, 0000, 0001, etc.) of the nodes at frequent ...
Akhil's user avatar
  • 209
1 vote
4 answers
4k views

Confirm that two filesystems are identical, ignoring special files

/media/A and /media/B should be identical, but I want to confirm before deleting one. Duplicate file finders don't work, because they'll find two copies of the same file within B, for instance. I ...
endolith's user avatar
  • 7,722