menuimage

Description

Usage

Options

Example_Output

Dependencies

License

Changelog

Download

My_Other_Sites

My_Programs

Comments

dutree v2.2 [11 Mar 2015] 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
-x - ignore files/directories in a different filesystem

Example Output

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

Dependencies

awk, basename, bash, du, fold, grep, sort, stty

License

Copyright 2015 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 http://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

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 releasek

Download dutree.sh

My Other Sites

My Programs

Here is a selection of some (other) programs I have written, most of which run 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 for a conventional Linux server, they should run even on a Raspberry Pi, and many can run under Windows using 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

Dellmont / Three / Giffgaff / Vodafone - VoIP and Mobile Phone Account Utilities

Miscellaneous Programs

Comments

No comments yet
*Name:
Email:
Hide my email
*Text:
 
Powered by Scriptsmill Comments Script