Coder Social home page Coder Social logo

diranalyze's Introduction

统计文件夹的大小

可以列出每个文件夹的大小,按照文件夹大小提供文件夹与子文件夹的树形结构,例如

/home/lo 46.153G
     /home/lo/JetbrainsIdesCrack.jar 29.365G
     /home/lo/.local 13.207G
          /home/lo/.local/share 13.207G
     /home/lo/.cache 2.068G
          /home/lo/.cache/netease-cloud-music 1.275G
          /home/lo/.cache/google-chrome 405.852M
          /home/lo/.cache/JetBrains 348.937M
          /home/lo/.cache/mozilla 33.308M
          /home/lo/.cache/go-build 11.156M
          /home/lo/.cache/tracker 4.509M
          /home/lo/.cache/mesa_shader_cache 2.871M
          .................

输入想要查看的文件夹来查看对应文件夹下的目录结构,以空格分割可输入显示深度(默认是3,深度过大会输出内容过多),如:

输入想要查看的文件夹:
/home/lo 2
******************************
/home/lo 46.153G
     /home/lo/JetbrainsIdesCrack.jar 29.365G
     /home/lo/.local 13.207G
     /home/lo/.cache 2.068G
     /home/lo/下载 544.837M
     /home/lo/snap 388.689M
     /home/lo/.config 194.232M
     /home/lo/Downloads 173.570M
     /home/lo/.GoLand2019.3 96.824M
     /home/lo/.IntelliJIdea2019.3 58.143M
     .............

diranalyze's People

Stargazers

 avatar  avatar

Watchers

 avatar

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.