tree¶
Without being root¶
Install and run tree
as not-root on an Ubuntu Linux system where it is not installed. If you have an account on the Swedish HPC centers, you will not have root-access and so have to install tree this way if it is missing.
- Create a directory to work in:
- Change to that directory:
- Download tree:
- Extract the files:
- Now you can run the tree command by giving the full path:
In order to run it without having to give the full path, create an alias in your ~/.bashrc
file:
1. Open ~/.bashrc
without your favourite editor.
2. Add this line at the end or with your other alias’es:
You can now run tree by just giving the command tree
.
As root¶
sudo apt install tree