I bought my first Mac in 2013 but honestly I never used it a lot. I bought it to create a mobile app for a client and then later to watch movies and youtube videos but for the past 2 years I have been using Mac as my main computer and I am by no means an expert on using Mac but everyday I learn something good.
Today I was wondering how can I quickly view the directory structure of a folder. After doing a quick google search I found on utility called tree. Yes simple tree command that you can run on your mac but you need to install it first.
Just type the following command. I am assuming you have brew already on your mac. If not then go to https://brew.sh and download it.
-
brew install tree
That is it really. Now go ahead and try this command.
-
$tree
-
├── LICENSE
-
├── README
-
├── pom.xml
-
└── src
-
├── main
-
│ ├── java
-
│ │ └── com
-
│ │ └── atlassian
-
│ │ └── tutorial
-
│ │ └── myPlugin
-
│ │ ├── api
-
│ │ │ └── MyPluginComponent.java
-
│ │ └── impl
-
│ │ └── MyPluginComponentImpl.java
-
│ └── resources
-
│ ├── META-INF
-
│ │ └── spring
-
│ │ └── plugin-context.xml
-
│ ├── atlassian-plugin.xml
-
│ ├── css
-
│ │ └── myPlugin.css
-
│ ├── images
-
│ │ ├── pluginIcon.png
-
│ │ └── pluginLogo.png
-
│ ├── js
-
│ │ └── myPlugin.js
-
│ └── myPlugin.properties
-
└── test
-
├── java
-
│ ├── it
-
│ │ └── com
-
│ │ └── atlassian
-
│ │ └── tutorial
-
│ │ └── myPlugin
-
│ │ └── MyComponentWiredTest.java
-
│ └── ut
-
│ └── com
-
│ └── atlassian
-
│ └── tutorial
-
│ └── myPlugin
-
│ └── MyComponentUnitTest.java
-
└── resources
-
└── atlassian-plugin.xml
Cool. Isn't it?