Coder Social home page Coder Social logo

josephpaul0 / tdu Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 2.0 124 KB

Top Disk Usage. You want to know what is using all your disk space ? This command-line tool estimates the disk space occupied by all files in a given path. It displays a sorted list of the biggest items. The estimation method is similar to the 'du -skx' command from GNU Coreutils package.

Home Page: https://github.com/josephpaul0/tdu

License: GNU General Public License v2.0

Makefile 0.22% Go 99.67% Batchfile 0.12%
top disk usage du ncdu filesystem space biggest largest df

tdu's Introduction

tdu - Top Disk Usage

This command-line tool estimates the disk space occupied by all files in a given path. It displays a sorted list of the biggest items. The estimation method is similar to the du -skx command from GNU Coreutils package.

Program usage

Usage: tdu [options] [directory]

  -b n           Number of big files shown (default 7)

  -l n           Number of depth1 items shown (default 15)

  --max          Show deepest and longest paths

  -o file        Export result to Ncdu JSON format
                 (https://dev.yorhel.nl/ncdu/jsonfmt)

  -e n           Number of empty directories shown (default 0)

  -d n           Number of access denied directories shown (default 0)

  -f n           Number of character and block devices shown (default 0)

  -t n           Number of sockets and named pipes shown (default 0)

  -s n           Number of file status errors shown (default 0)

  --human        Print sizes in human readable format (default yes)
  --human=false  Print sizes in kilobytes
  --consolemax   Maximize console window (on Windows only, default no)
  --version      Program info and usage
  --license      Show the GNU General Public License V2
  --help         Program help

Quick start guide for end users

  • If you just want to use the program on Linux or Windows x86-64, then you can download a ready-to-run binary at https://bitbucket.org/josephpaul0/tdu/downloads/
  • On the "Downloads" page, you will find packages for:
    • Linux (386, Amd64, Armv6), including Raspberry Pi.
    • Windows 7, 8, 10 (386, Amd64)
    • FreeBSD (386, Amd64)

Quick start guide for advanced users / developers

  • You need a Go compiler
  • Do not use Go v1.12 or v1.12.1 on Windows, because of this issue: golang/go#30883
  • Clone the git repository or download the source archive.
  • Run 'make' or 'build.cmd' to build the binary

Other Operating Systems

  • If you use FreeBSD or macOS, please test the code and submit patches for supporting those operating systems.

Project information:

Screenshot

Terminal

tdu's People

Contributors

abitrolly avatar josephpaul0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tdu's Issues

Fail to build on OS X

There is an error while building tdu for OS X.

# github.com/josephpaul0/tdu
./tdu.go:154:18: too many arguments in call to getTtyWidth
	have (*s_scan)
	want ()
./tdu.go:848:9: assignment mismatch: 2 variables but osInit returns 1 values
./tdu.go:867:7: too many arguments in call to osEnd
./tdu_generic.go:35:18: undefined: sc_scan

I've made a Homebrew package for tdu, and the error is reported by Homebrew CI - https://github.com/abitrolly/homebrew-tap/runs/3234326039#step:8:30

`-human` by default

It would be nice to have all sizes in human readable format by default as more users are going to invoke it interactively rather than trying to get machine readable format.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.