Linux tree for windows

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

List contents of directories in a tree-like format with colorization and lots of options

License

posh-projects/Tree

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

List contents of directories in a tree-like format with colorization and lots of options.

example 03

I frequently need a tree-style directory listing charts to include in my GitHub doc files. But the native windows tree.com implementation is far from perfect, and the Linux clone Tree for Windows renders the tree with legacy ASCII characters. So I decided to spend a couple of hours to write this wrapper with color highlighting and proper leafs rendering support.

This module uses Tree for Windows in order to get the initial directory structure and then colorizes its output and renders the unicode representation.

Make sure to download the Tree for Windows and make it accessible through your system PATH variable Install via Chocolatey: cinst tree

Читайте также:  Linux домене смена пароля

Get-ChildItemTree Understands all of its Linux tree counterpart, command line switches. So, feel free to read the official docs for more info.

If you want the alias tree to work properly, add Import-Module Tree to your Powershell profile config.

Use Get-ChildItemTree —help for help.

# Generate the tree # -a include hidden files # -I exclude .git folder PS>Get-ChildItemTree D:\Path -a -I .git

example 01

. ├── FolderOne │ ├── LICENSE │ ├── archive.rar │ └── text.txt ├── FolderThree │ ├── FolderTwo │ │ ├── SRC │ │ │ ├── picture.png │ │ │ └── unknown.yyy │ │ ├── executable.ps1 │ │ └── unknown.yyy │ └── text.md └── FolderTwo ├── InnerFolder │ └── unknown.yyy ├── executable.ps1 └── unknown.yyy 
# -h Print the size of each file in a human readable way # -p Print the file type and permissions for each file Get-ChildItemTree D:\Path -a -h -p

example 02

About

List contents of directories in a tree-like format with colorization and lots of options

Источник

Tree for Windows

Tree is a recursive directory listing program that produces a depth indented listing of files, which is colorized ala dircolors if the LS_COLORS environment variable is set and output is to tty. With no arguments, tree lists the files in the current directory. When directory arguments are given, tree lists all thefiles and/or directories found in the given directories each in turn. Upon completion of listing all files/directories found, tree returns the total number of files and/or directories listed.

Homepage

Download

Description Download Size Last change Md5sum
• Complete package, except sources Setup 369079 9 February 2009 a71f944d9b55874d4950505b7f0a325f
• Sources Setup 336287 9 February 2009 4486e72118997894814c0c3611d88b04
• Binaries Zip 41328 9 February 2009 9404560896d6b6533a13ded51516a9ec
• Documentation Zip 43747 9 February 2009 9029aefc813c7b068d781a1db196063c
• Sources Zip 52065 9 February 2009 8a0abacd604c52ee68049e9cfb47f2b5
• Original source ftp://mama.indstate.edu/linux/tree/tree-1.5.2.2.tgz
Читайте также:  Russian linux live cd

You can also download the files from the GnuWin32 files page. New releases of the port of this package can be monitored.

Installation, Usage and Help

Requirements

Источник

Tree view of a directory/folder in Windows? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

In Linux/KDE, I can see a directory as a tree. How can I do it in Windows 7? Consider I do NOT mean «Windows Explorer». This just shows the directories, I also want the files.

@Luke: it is useful for me, I always use it where it is available (Linux/Mac). And I do not need a tree view of the system32 directory, just of my own projects (e.g. you can get a tree view of your source code).

@Luke: What do you mean with: «it’s not terribly hard to do it yourself»? Should I learn the Windows API and write such an utility by myself?

This site is about programming so I assumed you were looking for either a 3rd party control or to write it yourself. I’m sure there are programs out there that already do it, though I’m not familiar with any.

It is very useful to have a tree view in windows. I am facing situations where I have to add a module or library that has lots of files. Easily than 50 files and sometimes well over 100 files. On my MacBook Pro, I see the enclosing folder collapsed and I just drap it with the mouse and stage it for the next commit. On Windows, I have to scroll down and select individual files. Such a waste of time. And it often happened that I missed some files during the commit. Even on system32, tree is supported. I develop on MS Visual Studio and there is a tree view control. I have used it several times.

Читайте также:  Linux files opened by process

Источник

Equivalent to command prompt’s «tree» command? [duplicate]

Back in my (sucky) Windows days, I used the tree command to view the file hierarchy in a pretty display. I am aware of the find command, but to actually process any data in my clogged 241,416 folders/files from just checking each line is as possible as time travelling.

./build/CMakeFiles/cmake.check_cache ./build/CMakeFiles/Makefile.cmake ./build/CMakeFiles/CMakeTmp ./build/CMakeFiles/TargetDirectories.txt ./build/CMakeFiles/compilerid.dir ./build/CMakeFiles/compilerid.dir/depend.make ./build/CMakeFiles/compilerid.dir/flags.make ./build/CMakeFiles/compilerid.dir/DependInfo.cmake ./build/CMakeFiles/compilerid.dir/link.txt ./build/CMakeFiles/compilerid.dir/build.make ./build/CMakeFiles/compilerid.dir/cmake_clean.cmake ./build/CMakeFiles/compilerid.dir/main.o ./build/CMakeFiles/compilerid.dir/CXX.includecache ./build/CMakeFiles/compilerid.dir/progress.make ./build/CMakeFiles/compilerid.dir/depend.internal ./build/cmake_install.cmake ./build/CMakeCache.txt ./build/Makefile ./build/compilerid ./CompilerID.kdev4 ./.kdev4 ./.kdev4/CompilerID.kdev4 ./main.cpp 

Screenshot of tree command in command prompt

Output of find on one folder holding the files of a one-file, incomplete C++ project On Windows, the tree command gave a diagram-like output that is human readable
Screenshot of the pretty tree command

Источник

Оцените статью
Adblock
detector