From 6525ad85adf42f210884ab04ac3c30e9b51cd88b Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 17 Oct 2023 19:04:59 +0200 Subject: [PATCH] add tree --- basics/tree.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 basics/tree.md diff --git a/basics/tree.md b/basics/tree.md new file mode 100644 index 0000000..1aa08d3 --- /dev/null +++ b/basics/tree.md @@ -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.