Showing posts with label Tree (Unix). Show all posts
Showing posts with label Tree (Unix). Show all posts

Saturday, September 10, 2016

Ubuntu: Installing Tree (Unix) Command

Command:

$ sudo apt-get install tree


Result:

[sudo] password for USERNAME:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-21 linux-headers-4.4.0-21-generic linux-headers-4.4.0-22
  linux-headers-4.4.0-22-generic linux-image-4.4.0-21-generic
  linux-image-4.4.0-22-generic linux-image-extra-4.4.0-21-generic
  linux-image-extra-4.4.0-22-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  tree
0 upgraded, 1 newly installed, 0 to remove and 55 not upgraded.
Need to get 40.6 kB of archives.
After this operation, 138 kB of additional disk space will be used.
Get:1 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 tree amd64 1.7.0-3 [40.6 kB]
Fetched 40.6 kB in 0s (172 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "ja_JP.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("ja_JP.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: LC_ALL??????????????????: ??????????????????????
Selecting previously unselected package tree.
(Reading database ... 189313 files and directories currently installed.)
Preparing to unpack .../tree_1.7.0-3_amd64.deb ...
Unpacking tree (1.7.0-3) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up tree (1.7.0-3) ...


Command (Try Tree Command):

$ tree Open-usp-Tukubai-master/


Result:

Open-usp-Tukubai-master/
|-- COMMANDS
|   |-- calclock
|   |-- cgi-name
|   |-- check_attr_name
|   |-- check_need_name
|   |-- cjoin0
|   |-- cjoin1
|   |-- cjoin2
|   |-- comma
|   |-- count
|   |-- ctail
|   |-- dayslash
|   |-- delf
|   |-- divsen
|   |-- filehame
|   |-- formhame
|   |-- getfirst
|   |-- getlast
|   |-- gyo
|   |-- han
|   |-- join0
|   |-- join1
|   |-- join2
|   |-- juni
|   |-- kasan
|   |-- keta
|   |-- keycut
|   |-- loopj
|   |-- loopx
|   |-- maezero
|   |-- man2
|   |-- map
|   |-- marume
|   |-- mdate
|   |-- mime-read
|   |-- mojihame
|   |-- nameread
|   |-- numchar
|   |-- plus
|   |-- rank
|   |-- ratio
|   |-- retu
|   |-- self
|   |-- sm2
|   |-- sm4
|   |-- sm5
|   |-- tarr
|   |-- tateyoko
|   |-- tcat
|   |-- unmap
|   |-- up3
|   |-- yarr
|   |-- ycat
|   |-- yobi
|   |-- ysum
|   `-- zen
|-- COMMANDS.GAWK
|   `-- self
|-- COMMANDS.HS
|   |-- calclock.hs
|   |-- cgi-name.hs
|   |-- check_need_name.hs
|   |-- cjoin0.hs
|   |-- cjoin1.hs
|   |-- cjoin2.hs
|   |-- comma.hs
|   |-- count.hs
|   |-- ctail.hs
|   |-- dayslash.hs
|   |-- delf.hs
|   |-- divsen.hs
|   |-- filehame.hs
|   |-- formhame.hs
|   |-- getfirst.hs
|   |-- getlast.hs
|   |-- gyo.hs
|   |-- han.hs
|   |-- join0.hs
|   |-- join1.hs
|   |-- join2.hs
|   |-- juni.hs
|   |-- kasan.hs
|   |-- keta.hs
|   |-- loopx.hs
|   |-- maezero.hs
|   |-- map.hs
|   |-- marume.hs
|   |-- mdate.hs
|   |-- mojihame.hs
|   |-- plus.hs
|   |-- ratio.hs
|   |-- retu.hs
|   |-- self.hs
|   |-- sm2.hs
|   |-- tarr.hs
|   |-- tateyoko.hs
|   |-- yarr.hs
|   `-- zen.hs
|-- COMMANDS.SH
|   |-- cgi-name
|   |-- cjoin0
|   |-- cjoin1
|   |-- delf
|   |-- filehame
|   |-- gyo
|   |-- keta
|   |-- nameread
|   |-- plus
|   |-- retu
|   |-- self
|   |-- sm2
|   |-- tateyoko
|   `-- ycat
|-- DOC_JP
|   `-- map
|       `-- cross_tabulation.rst
|-- DONE
|-- INSTALL
|-- LICENSE
|-- MANUAL
|   |-- calclock.txt
|   |-- cgi-name.txt
|   |-- check_attr_name.txt
|   |-- check_need_name.txt
|   |-- cjoin0.txt
|   |-- cjoin1.txt
|   |-- cjoin2.txt
|   |-- comma.txt
|   |-- count.txt
|   |-- ctail.txt
|   |-- dayslash.txt
|   |-- delf.txt
|   |-- divsen.txt
|   |-- field-format.txt
|   |-- filehame.txt
|   |-- formhame.txt
|   |-- getfirst.txt
|   |-- getlast.txt
|   |-- gyo.txt
|   |-- han.txt
|   |-- join0.txt
|   |-- join1.txt
|   |-- join2.txt
|   |-- juni.txt
|   |-- kasan.txt
|   |-- keta.txt
|   |-- keycut.txt
|   |-- lineup.txt
|   |-- loopj.txt
|   |-- loopx.txt
|   |-- maezero.txt
|   |-- map.txt
|   |-- marume.txt
|   |-- master-file.txt
|   |-- mdate.txt
|   |-- mime-read.txt
|   |-- mojihame.txt
|   |-- name-file.txt
|   |-- name-format.txt
|   |-- nameread.txt
|   |-- numchar.txt
|   |-- plus.txt
|   |-- rank.txt
|   |-- ratio.txt
|   |-- retu.txt
|   |-- self.txt
|   |-- sisu.txt
|   |-- sm2.txt
|   |-- sm4.txt
|   |-- sm5.txt
|   |-- sorter.txt
|   |-- tag-format.txt
|   |-- tarr.txt
|   |-- tateyoko.txt
|   |-- tcat.txt
|   |-- transaction-file.txt
|   |-- unmap.txt
|   |-- up3.txt
|   |-- yarr.txt
|   |-- ycat.txt
|   |-- yobi.txt
|   |-- ysum.txt
|   `-- zen.txt
|-- MANUALHTML
|   |-- COMMON
|   |   |-- CSS
|   |   |   |-- IE67HACK.CSS
|   |   |   |-- IE6HACK.CSS
|   |   |   |-- IE7HACK.CSS
|   |   |   |-- MAIN.CSS
|   |   |   |-- MENU.CSS
|   |   |   `-- PRINT.CSS
|   |   |-- IMG
|   |   |   |-- BACKGROUND.JPG
|   |   |   `-- TUKUBAI_LOGO.JPG
|   |   `-- JS
|   |       `-- MENU.JS
|   |-- calclock.html
|   |-- cgi-name.html
|   |-- check_attr_name.html
|   |-- check_need_name.html
|   |-- cjoin0.html
|   |-- cjoin1.html
|   |-- cjoin2.html
|   |-- comma.html
|   |-- count.html
|   |-- ctail.html
|   |-- dayslash.html
|   |-- delf.html
|   |-- divsen.html
|   |-- field-format.html
|   |-- filehame.html
|   |-- formhame.html
|   |-- getfirst.html
|   |-- getlast.html
|   |-- gyo.html
|   |-- han.html
|   |-- index.html
|   |-- join0.html
|   |-- join1.html
|   |-- join2.html
|   |-- juni.html
|   |-- kasan.html
|   |-- keta.html
|   |-- keycut.html
|   |-- lcalc.html
|   |-- lineup.html
|   |-- loopj.html
|   |-- loopx.html
|   |-- maezero.html
|   |-- map.html
|   |-- marume.html
|   |-- master-file.html
|   |-- mdate.html
|   |-- mime-read.html
|   |-- mojihame.html
|   |-- name-file.html
|   |-- name-format.html
|   |-- nameread.html
|   |-- plus.html
|   |-- rank.html
|   |-- ratio.html
|   |-- retu.html
|   |-- self.html
|   |-- sisu.html
|   |-- sm2.html
|   |-- sm4.html
|   |-- sm5.html
|   |-- sorter.html
|   |-- tag-format.html
|   |-- tarr.html
|   |-- tateyoko.html
|   |-- tcat.html
|   |-- transaction-file.html
|   |-- unmap.html
|   |-- up3.html
|   |-- yarr.html
|   |-- ycat.html
|   |-- yobi.html
|   |-- ysum.html
|   `-- zen.html
|-- MANUALPDF
|   `-- all.pdf
|-- Makefile
|-- README
|-- README.md
|-- TEST
|   |-- calclock.test
|   |-- cgi-name.test
|   |-- check_need_name.test
|   |-- cjoin0.test
|   |-- cjoin1.test
|   |-- cjoin2.test
|   |-- comma.test
|   |-- count.test
|   |-- ctail.test
|   |-- dayslash.test
|   |-- delf.test
|   |-- divsen.test
|   |-- filehame.test
|   |-- formhame.hs.test
|   |-- formhame.test
|   |-- getfirst.test
|   |-- getlast.test
|   |-- gyo.test
|   |-- han.test
|   |-- join0.test
|   |-- join1.test
|   |-- join2.test
|   |-- juni.test
|   |-- kasan.test
|   |-- keta.test
|   |-- keycut.test
|   |-- loopj.test
|   |-- loopx.test
|   |-- maezero.test
|   |-- map.test
|   |-- marume.test
|   |-- mdate.test
|   |-- nameread.test
|   |-- numchar.test
|   |-- plus.test
|   |-- ratio.test
|   |-- regress.all
|   |-- retu.test
|   |-- self.test
|   |-- sm2.test
|   |-- tarr.test
|   |-- tateyoko.test
|   |-- test.at.travis
|   |-- yarr.test
|   |-- ycat.test
|   `-- zen.test
|-- TICKETS
|   |-- COMPLETED
|   |   `-- TICKET_005
|   |-- TICKET_001
|   |-- TICKET_002
|   |-- TICKET_003
|   |-- TICKET_004
|   |-- TICKET_006
|   |-- TICKET_007
|   `-- TICKET_008
|-- deb
|   |-- README
|   |-- labunix.Makefile
|   |-- open-usp_Tukubai-3_amd64.deb
|   |-- open-usp_Tukubai-3_i386.deb
|   `-- usp.sh
`-- pacman
    |-- PKGBUILD
    |-- README
    |-- build.sh
    `-- open-usp-tukubai-HEAD-1-any.pkg.tar.xz

18 directories, 316 files

Tree (Unix): Example

$ tree Open-usp-Tukubai-master/

Open-usp-Tukubai-master/
├── COMMANDS
│   ├── calclock
│   ├── cgi-name
│   ├── check_attr_name
│   ├── check_need_name
│   ├── cjoin0
│   ├── cjoin1
│   ├── cjoin2
│   ├── comma
│   ├── count
│   ├── ctail
│   ├── dayslash
│   ├── delf
│   ├── divsen
│   ├── filehame
│   ├── formhame
│   ├── getfirst
│   ├── getlast
│   ├── gyo
│   ├── han
│   ├── join0
│   ├── join1
│   ├── join2
│   ├── juni
│   ├── kasan
│   ├── keta
│   ├── keycut
│   ├── loopj
│   ├── loopx
│   ├── maezero
│   ├── man2
│   ├── map
│   ├── marume
│   ├── mdate
│   ├── mime-read
│   ├── mojihame
│   ├── nameread
│   ├── numchar
│   ├── plus
│   ├── rank
│   ├── ratio
│   ├── retu
│   ├── self
│   ├── sm2
│   ├── sm4
│   ├── sm5
│   ├── tarr
│   ├── tateyoko
│   ├── tcat
│   ├── unmap
│   ├── up3
│   ├── yarr
│   ├── ycat
│   ├── yobi
│   ├── ysum
│   └── zen
├── COMMANDS.GAWK
│   └── self
├── COMMANDS.HS
│   ├── calclock.hs
│   ├── cgi-name.hs
│   ├── check_need_name.hs
│   ├── cjoin0.hs
│   ├── cjoin1.hs
│   ├── cjoin2.hs
│   ├── comma.hs
│   ├── count.hs
│   ├── ctail.hs
│   ├── dayslash.hs
│   ├── delf.hs
│   ├── divsen.hs
│   ├── filehame.hs
│   ├── formhame.hs
│   ├── getfirst.hs
│   ├── getlast.hs
│   ├── gyo.hs
│   ├── han.hs
│   ├── join0.hs
│   ├── join1.hs
│   ├── join2.hs
│   ├── juni.hs
│   ├── kasan.hs
│   ├── keta.hs
│   ├── loopx.hs
│   ├── maezero.hs
│   ├── map.hs
│   ├── marume.hs
│   ├── mdate.hs
│   ├── mojihame.hs
│   ├── plus.hs
│   ├── ratio.hs
│   ├── retu.hs
│   ├── self.hs
│   ├── sm2.hs
│   ├── tarr.hs
│   ├── tateyoko.hs
│   ├── yarr.hs
│   └── zen.hs
├── COMMANDS.SH
│   ├── cgi-name
│   ├── cjoin0
│   ├── cjoin1
│   ├── delf
│   ├── filehame
│   ├── gyo
│   ├── keta
│   ├── nameread
│   ├── plus
│   ├── retu
│   ├── self
│   ├── sm2
│   ├── tateyoko
│   └── ycat
├── DOC_JP
│   └── map
│       └── cross_tabulation.rst
├── DONE
├── INSTALL
├── LICENSE
├── MANUAL
│   ├── calclock.txt
│   ├── cgi-name.txt
│   ├── check_attr_name.txt
│   ├── check_need_name.txt
│   ├── cjoin0.txt
│   ├── cjoin1.txt
│   ├── cjoin2.txt
│   ├── comma.txt
│   ├── count.txt
│   ├── ctail.txt
│   ├── dayslash.txt
│   ├── delf.txt
│   ├── divsen.txt
│   ├── field-format.txt
│   ├── filehame.txt
│   ├── formhame.txt
│   ├── getfirst.txt
│   ├── getlast.txt
│   ├── gyo.txt
│   ├── han.txt
│   ├── join0.txt
│   ├── join1.txt
│   ├── join2.txt
│   ├── juni.txt
│   ├── kasan.txt
│   ├── keta.txt
│   ├── keycut.txt
│   ├── lineup.txt
│   ├── loopj.txt
│   ├── loopx.txt
│   ├── maezero.txt
│   ├── map.txt
│   ├── marume.txt
│   ├── master-file.txt
│   ├── mdate.txt
│   ├── mime-read.txt
│   ├── mojihame.txt
│   ├── name-file.txt
│   ├── name-format.txt
│   ├── nameread.txt
│   ├── numchar.txt
│   ├── plus.txt
│   ├── rank.txt
│   ├── ratio.txt
│   ├── retu.txt
│   ├── self.txt
│   ├── sisu.txt
│   ├── sm2.txt
│   ├── sm4.txt
│   ├── sm5.txt
│   ├── sorter.txt
│   ├── tag-format.txt
│   ├── tarr.txt
│   ├── tateyoko.txt
│   ├── tcat.txt
│   ├── transaction-file.txt
│   ├── unmap.txt
│   ├── up3.txt
│   ├── yarr.txt
│   ├── ycat.txt
│   ├── yobi.txt
│   ├── ysum.txt
│   └── zen.txt
├── MANUALHTML
│   ├── COMMON
│   │   ├── CSS
│   │   │   ├── IE67HACK.CSS
│   │   │   ├── IE6HACK.CSS
│   │   │   ├── IE7HACK.CSS
│   │   │   ├── MAIN.CSS
│   │   │   ├── MENU.CSS
│   │   │   └── PRINT.CSS
│   │   ├── IMG
│   │   │   ├── BACKGROUND.JPG
│   │   │   └── TUKUBAI_LOGO.JPG
│   │   └── JS
│   │       └── MENU.JS
│   ├── calclock.html
│   ├── cgi-name.html
│   ├── check_attr_name.html
│   ├── check_need_name.html
│   ├── cjoin0.html
│   ├── cjoin1.html
│   ├── cjoin2.html
│   ├── comma.html
│   ├── count.html
│   ├── ctail.html
│   ├── dayslash.html
│   ├── delf.html
│   ├── divsen.html
│   ├── field-format.html
│   ├── filehame.html
│   ├── formhame.html
│   ├── getfirst.html
│   ├── getlast.html
│   ├── gyo.html
│   ├── han.html
│   ├── index.html
│   ├── join0.html
│   ├── join1.html
│   ├── join2.html
│   ├── juni.html
│   ├── kasan.html
│   ├── keta.html
│   ├── keycut.html
│   ├── lcalc.html
│   ├── lineup.html
│   ├── loopj.html
│   ├── loopx.html
│   ├── maezero.html
│   ├── map.html
│   ├── marume.html
│   ├── master-file.html
│   ├── mdate.html
│   ├── mime-read.html
│   ├── mojihame.html
│   ├── name-file.html
│   ├── name-format.html
│   ├── nameread.html
│   ├── plus.html
│   ├── rank.html
│   ├── ratio.html
│   ├── retu.html
│   ├── self.html
│   ├── sisu.html
│   ├── sm2.html
│   ├── sm4.html
│   ├── sm5.html
│   ├── sorter.html
│   ├── tag-format.html
│   ├── tarr.html
│   ├── tateyoko.html
│   ├── tcat.html
│   ├── transaction-file.html
│   ├── unmap.html
│   ├── up3.html
│   ├── yarr.html
│   ├── ycat.html
│   ├── yobi.html
│   ├── ysum.html
│   └── zen.html
├── MANUALPDF
│   └── all.pdf
├── Makefile
├── README
├── README.md
├── TEST
│   ├── calclock.test
│   ├── cgi-name.test
│   ├── check_need_name.test
│   ├── cjoin0.test
│   ├── cjoin1.test
│   ├── cjoin2.test
│   ├── comma.test
│   ├── count.test
│   ├── ctail.test
│   ├── dayslash.test
│   ├── delf.test
│   ├── divsen.test
│   ├── filehame.test
│   ├── formhame.hs.test
│   ├── formhame.test
│   ├── getfirst.test
│   ├── getlast.test
│   ├── gyo.test
│   ├── han.test
│   ├── join0.test
│   ├── join1.test
│   ├── join2.test
│   ├── juni.test
│   ├── kasan.test
│   ├── keta.test
│   ├── keycut.test
│   ├── loopj.test
│   ├── loopx.test
│   ├── maezero.test
│   ├── map.test
│   ├── marume.test
│   ├── mdate.test
│   ├── nameread.test
│   ├── numchar.test
│   ├── plus.test
│   ├── ratio.test
│   ├── regress.all
│   ├── retu.test
│   ├── self.test
│   ├── sm2.test
│   ├── tarr.test
│   ├── tateyoko.test
│   ├── test.at.travis
│   ├── yarr.test
│   ├── ycat.test
│   └── zen.test
├── TICKETS
│   ├── COMPLETED
│   │   └── TICKET_005
│   ├── TICKET_001
│   ├── TICKET_002
│   ├── TICKET_003
│   ├── TICKET_004
│   ├── TICKET_006
│   ├── TICKET_007
│   └── TICKET_008
├── deb
│   ├── README
│   ├── labunix.Makefile
│   ├── open-usp_Tukubai-3_amd64.deb
│   ├── open-usp_Tukubai-3_i386.deb
│   └── usp.sh
└── pacman
    ├── PKGBUILD
    ├── README
    ├── build.sh
    └── open-usp-tukubai-HEAD-1-any.pkg.tar.xz

18 directories, 316 files

macOS Sierra: Installing Tree (Unix) Command

Command:

$ brew install tree


Result:

==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.

Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Using the sandbox
==> Downloading http://mama.indstate.edu/users/ice/tree/src/tree-1.7.0.tgz
######################################################################## 100.0%
==> make prefix=/usr/local/Cellar/tree/1.7.0 MANDIR=/usr/local/Cellar/tree/1.7.0/share/man/man1 CC=clang CFLAGS=-fomit-frame-pointer LDFLAGS= OBJS=tree.o unix.o html.o xml.o hash.o
🍺  /usr/local/Cellar/tree/1.7.0: 7 files, 113.2K, built in 7 seconds