This commit is contained in:
Malin Freeborn 2023-10-17 19:04:59 +02:00
parent ad9054c212
commit 6525ad85ad
Signed by: andonome
GPG Key ID: 52295D2377F4D70F
1 changed files with 25 additions and 0 deletions

25
basics/tree.md Normal file
View File

@ -0,0 +1,25 @@
---
title: "tree"
tags: [ "basics" ]
---
The `tree` utility outputs a full listing of everything in your current directory, and those below.
- Just directories: `tree -d`
- Output colour to `less`: `tree -C --info | less -re`
- Ignore files in the `.gitignore` file: `tree --gitignore`
You can place information about the files in a directory to use with the `tree --info` option, like this:
```
config
Config files.
This is a git submodule.
README.md
Summary of the git.
*.jpg
Little picture, does not display
words well.
```
Each description-line starts with a tab.