ncdu, alternative Linux à TreeSize Free
Mis à jour le
Notre avis
ncdu is a solid replacement for TreeSize Free for users who are comfortable with the terminal. It provides an interactive, keyboard‑driven tree view, sorts by size automatically, and can save scans for later. It is ideal for system administrators, developers, and power users who need quick disk‑usage insights or want to script the process. However, it lacks a graphical interface and the ability to directly open TreeSize Free’s proprietary report files, so users who rely on a GUI or need to share reports with non‑Linux colleagues may find it less convenient.
- Licence
- GPL-3.0
- Prix
- Gratuit
- Dernière version
- 2.11.1
- Note
- —
Ce qui fonctionne pareil
- Both display folder sizes in a hierarchical tree view
- Both allow sorting by size
- Both support exporting or copying results to a file
- Both can be used in scripts (ncdu has a quick‑scan mode)
Ce qui change
- ncdu is terminal‑based; TreeSize Free is GUI
- ncdu cannot open TreeSize Free’s .tsf files; export format differs
- TreeSize Free offers more filtering options (e.g., by file type)
- TreeSize Free can scan network shares via SMB without extra setup
- ncdu requires a terminal emulator, not a full desktop environment
Ouvrir vos fichiers TreeSize Free
TreeSize Free stores reports in its own .tsf binary format, which ncdu cannot read. To migrate, export the TreeSize report to CSV or plain text from Windows, then import that text into ncdu or use a third‑party conversion tool. If you only need the data, copy the exported file to Linux and run ncdu on the same directories to regenerate the tree view.
Passer de TreeSize Free à ncdu, étape par étape
- Export the TreeSize Free report to CSV or plain text on Windows.
- Transfer the exported file to the Linux machine via SCP or USB.
- Open the file with a text editor to confirm the format.
- Run ncdu on the target directories to generate a new tree view.
- Save the ncdu scan if you want to revisit it later.
- Share the CSV or plain text report with colleagues if needed.
Fonctionnalités clés de ncdu
- Vue arborescente interactive des tailles des répertoires
- Trie les répertoires par taille par défaut
- Scan rapide avec une empreinte mémoire faible
- Prend en charge l'analyse de répertoires distants via SSH
- Peut enregistrer et charger les résultats de scan pour examen ultérieur
- Navigation pilotée au clavier sans souris
- Affiche le nombre de fichiers et la taille totale par répertoire
- S'exécute dans n'importe quel émulateur de terminal standard
Installer ncdu sous Linux
sudo apt install ncdusudo apt install ncdusudo dnf install ncdusudo pacman -S ncdusudo zypper install ncduQuestions fréquentes
Can I use ncdu in scripts to get a quick size summary?
Yes, run ncdu -o- /path | grep -E '^\s*\d+' to output a simple list of sizes. The -o flag writes the scan to a file, and -q suppresses the interactive UI for scripting.
Does ncdu support remote directories via SSH?
Yes, mount the remote directory with SSHFS or run ncdu directly on a remote host via SSH: ssh user@host 'ncdu -o- /remote/path'.
Is there a way to export ncdu results to a CSV file?
ncdu can save scans in its own binary format with -o, but to get CSV you need to parse the output or use ncdu --export (available in newer versions) which writes a plain‑text tree that can be converted to CSV with a simple script.