{"id":25407938,"url":"https://github.com/teomandeniz/tree_unix","last_synced_at":"2026-04-10T23:42:37.473Z","repository":{"id":222014757,"uuid":"755959112","full_name":"TeomanDeniz/Tree_Unix","owner":"TeomanDeniz","description":"A replica of \"tree\" command from Microsoft Windows for Unix","archived":false,"fork":false,"pushed_at":"2024-02-15T23:58:41.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T13:49:17.329Z","etag":null,"topics":["c","linux","macos","unix"],"latest_commit_sha":null,"homepage":"https://maximum-tension.com","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TeomanDeniz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-11T15:33:00.000Z","updated_at":"2024-02-15T23:11:32.000Z","dependencies_parsed_at":"2024-02-16T00:22:50.076Z","dependency_job_id":null,"html_url":"https://github.com/TeomanDeniz/Tree_Unix","commit_stats":null,"previous_names":["teomandeniz/tree","teomandeniz/tree_unix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TeomanDeniz/Tree_Unix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeomanDeniz%2FTree_Unix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeomanDeniz%2FTree_Unix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeomanDeniz%2FTree_Unix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeomanDeniz%2FTree_Unix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TeomanDeniz","download_url":"https://codeload.github.com/TeomanDeniz/Tree_Unix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeomanDeniz%2FTree_Unix/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265220408,"owners_count":23729806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","linux","macos","unix"],"created_at":"2025-02-16T07:19:26.059Z","updated_at":"2026-04-10T23:42:32.427Z","avatar_url":"https://github.com/TeomanDeniz.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unix Tree\n\nThis project is a Unix command-line tool written in C language, inspired by the functionality of the \"tree\" command in Windows. It provides a visual representation of the directory structure starting from the current directory or a specified directory.\n\n## Usage\n\n### Display Directory Tree\n\nTo display the directory tree of the current directory:\n\n```bash\n./tree\n```\n\nTo display the directory tree of a specific folder:\n```bash\n./tree ./test_folder\n./tree test_folder\n```\n\n### Display All Files\n\nTo include all files, including hidden files (such as .git, .DS_STORE), use the -a or -A option:\n\n```bash\n./tree -a\n```\n\nYou can combine the options with directory paths:\n\n```bash\n./tree -a test_folder\n./tree test_folder -a\n```\n\nYou can also edit the output by the defines inside of the `header.h` if you want:\n```c\n#\tdefine TREE_START \".\\n\" /* ./tree.c */\n#\tdefine TREE_DRAW_BRANCH \":..\" /* ./recursive_tree.c */\n#\tdefine TREE_PRINT_FILE \" %s\\n\" /* ./recursive_tree.c */\n#\tdefine TREE_PRINT_FOLDER \"[%s]\\n\" /* ./recursive_tree.c */\n#\tdefine TREE_DRAW_LINE \":  \" /* ./recursive_tree.c */\n#\tdefine TREE_DRAW_IDLE \"   \" /* ./recursive_tree.c */\n```\n\n## Example Output:\n\n```\n.\n:.. LICENSE\n:.. main.c\n:.. Makefile\n:.. path_overwrite.c\n:.. path_overwrite.o\n:.. recursive_tree.c\n:.. recursive_tree.o\n:.. tree\n:.. tree.a\n:.. tree.c\n:..[tree.dSYM]\n:  :..[Contents]\n:     :.. Info.plist\n:     :..[Resources]\n:        :..[DWARF]\n:           :.. tree\n:\n:.. tree.h\n:.. tree.o\n```\n```\n.\n:..[.git]\n:  :.. config\n:  :.. description\n:  :.. HEAD\n:  :..[hooks]\n:  :  :.. applypatch-msg.sample\n:  :  :.. commit-msg.sample\n:  :  :.. fsmonitor-watchman.sample\n:  :  :.. post-update.sample\n:  :  :.. pre-applypatch.sample\n:  :  :.. pre-commit.sample\n:  :  :.. pre-merge-commit.sample\n:  :  :.. pre-push.sample\n:  :  :.. pre-rebase.sample\n:  :  :.. pre-receive.sample\n:  :  :.. prepare-commit-msg.sample\n:  :  :.. update.sample\n:  :\n:  :.. index\n:  :..[info]\n:  :  :.. exclude\n:  :\n:  :..[logs]\n:  :  :.. HEAD\n:  :  :..[refs]\n:  :     :..[heads]\n:  :     :  :.. main\n:  :     :\n:  :     :..[remotes]\n:  :        :..[origin]\n:  :           :.. HEAD\n:  :\n:  :..[objects]\n:  :  :..[19]\n:  :  :  :.. 0e20f699268b886048a1f38406c8075f756887\n:  :  :\n:  :  :..[50]\n:  :  :  :.. 08ddfcf53c02e82d7eee2e57c38e5672ef89f6\n:  :  :\n:  :  :..[6e]\n:  :  :  :.. fe821b3e0ce42c41dc79cc3904769512fa2a61\n:  :  :\n:  :  :..[76]\n:  :  :  :.. fb25c9e4ca990d3361801dfbc86520273f9c12\n:  :  :\n:  :  :..[79]\n:  :  :  :.. 97a09412ad291ae9e6a0ffea586e7445961133\n:  :  :\n:  :  :..[ea]\n:  :  :  :.. 3d270a7580832ac9b6d674c5575ca3ae853779\n:  :  :\n:  :  :..[fb]\n:  :  :  :.. 77738811439a8d8d529bb693b7ee0abfc2fbb0\n:  :  :\n:  :  :..[info]\n:  :  :\n:  :  :..[pack]\n:  :     :.. pack-326d33b51e7d0acd97b6b436117a4bbd05967c18.idx\n:  :     :.. pack-326d33b51e7d0acd97b6b436117a4bbd05967c18.pack\n:  :\n:  :.. packed-refs\n:  :..[refs]\n:     :..[heads]\n:     :  :.. main\n:     :\n:     :..[remotes]\n:     :  :..[origin]\n:     :     :.. HEAD\n:     :\n:     :..[tags]\n:\n:..[asd]\n:\n:.. Another test file\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteomandeniz%2Ftree_unix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteomandeniz%2Ftree_unix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteomandeniz%2Ftree_unix/lists"}