how to determine folder/directory structure with tree and find and delete big files with ncdu

Опубликовано: 07 Август 2026
на канале: Foivos Gypas
63
1

Create a new conda/mamba environment with tree and ncdu
`mamba create -n ncdu_and_tree -c conda-forge tree ncdu`

Activate the conda environment
`conda activate ncdu_and_tree`

Run the tree command to determine the directory structure
`tree /path/to/director`

Run the ncdu command to determine the file size of a directory and the subdirectories
`ncdu -x /path/to/director`

Move with the arrows. Press `Return` to enter a directory. Press `D` to delete a directory or a file. Press `Q` to exit.