menuimage

Description

Usage

Options

Example_Output

Dependencies

License

Changelog

Download

Donation

My_Other_Sites

My_Programs

Comments

dutree v2.5 [27 Aug 2024] by Dominic

Description

GNU/Linux command-line program which shows a tree-style list of files and directories at the specified location but only showing directories and files greater than a specified size (default 1GB).

The purpose is to identify how storage space is being used and where it might be being wasted. dutree.sh make it easy to focus on the big space hogs.

Usage

dutree.sh [options] /mydir/mysubdir [size]
where (optional) size can be:
T - for >1TB
F - for >10GB
G or missing - for >1GB
H - for >100MB
N - for >10MB
M - for >1MB
K - for >1KB

Options

-h - show help and exit
-l - show changelog and exit
-n - suppress header
-x - ignore files/directories in a different filesystem
-X 'dir' - ignore files/directories that start with directory 'dir'

Example Output

You can see an example of dutree.sh's output at https://www.timedicer.co.uk/dutree.jpg

Dependencies

awk basename bash du fold grep sort stty

License

Copyright © 2024 Dominic Raferd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Changelog

(note that very minor changes may occur between releases listed here e.g. v2.4.1)
2.5 [27 Aug 2024] - add -X option
2.4 [11 Jan 2023] - rename -q option as -n
2.3 [08 Jul 2020] - add quiet option
2.2 [11 Mar 2015] - bugfix deletion of temporary files
2.1 [28 Dec 2014] - bugfix for names containing %
2.0 [28 Oct 2014] - improved layout
1.9 [14 Oct 2014] - add -x option
1.8 [03 Apr 2014] - use /tmp instead of /var/tmp
1.7 [01 Nov 2013] - exclude /proc
1.6 [07 Nov 2012] - fix layout if location does not start with slash
1.5 [14 Aug 2012] - add F option for >10GB
1.4 [13 Aug 2012] - show help if no location is specified
1.3 [24 Jul 2012] - bugfix - prevent abort message if no files big enough found
1.2 [30 May 2012] - bugfix - was broken when run w/o specifying a size parameter, also added a link in help text to some example output
1.1 [02 May 2012] - add more options, add help/changelog, directories now shown with trailing slash
1.0 [01 May 2012] - initial release

Download dutree.sh

Donation

I have provided this software free gratis and for nothing. If you would like to thank me with a contribution, please let me know and I will send you a link. Thank you!

My Other Sites

My Programs

Here is a selection of some (other) programs I have written, most of which run under GNU/Linux from the command line (CLI), are freely available and can be obtained by clicking on the links. Dependencies are shown and while in most cases written and tested on an x86-based Linux server, they should run on a Raspberry Pi, and many can run under Windows using Windows Subsystem for Linux (WSL) or Cygwin. Email me if you have problems or questions, or if you think I could help with a programming requirement.

Backup Utilities

Debian/Ubuntu kernel and LVM Utilities

Miscellaneous Programs

Comments

This section is closed. If you have a question, please submit it by email, thank you.

No comments yet for '/programs/help/dutree.sh.php'