Home > linux > tree command

tree command

Problem
You want to visualize the tree structure of the current directory.

Solution
You need the “tree” command. Under Manjaro it was not installed by default, but of course it could be installed easily with the package manager.


$ tree
.
├── greetings
│   ├── english.rs
│   └── french.rs
└── lib.rs

1 directory, 3 files

If you want to ignore a subdirectory, use the “-I” option:


$ tree -I target
.
├── Cargo.lock
├── Cargo.toml
├── src
│   ├── greetings
│   │   ├── english.rs
│   │   └── french.rs
│   └── lib.rs
└── src.old
└── lib.rs

3 directories, 6 files

Categories: linux Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: