install tree on linux code example Example 1: ubuntu install tree apt-get install tree Example 2: install tree in linux sudo apt-get install tree