{"id":20316476,"url":"https://github.com/javinator9889/diskusage","last_synced_at":"2025-03-04T09:14:31.966Z","repository":{"id":114246949,"uuid":"107908386","full_name":"Javinator9889/DiskUsage","owner":"Javinator9889","description":"DiskUsage command for listing files, folders and more and get how much space they are using","archived":false,"fork":false,"pushed_at":"2017-10-29T16:12:24.000Z","size":55,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-14T13:14:08.829Z","etag":null,"topics":["bash","disk-space","disk-usage","du","files","find","shell-script","tables","unix","unix-command"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Javinator9889.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-22T22:39:24.000Z","updated_at":"2018-05-17T07:43:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff080acd-d134-4de7-997c-b970f93639eb","html_url":"https://github.com/Javinator9889/DiskUsage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Javinator9889%2FDiskUsage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Javinator9889%2FDiskUsage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Javinator9889%2FDiskUsage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Javinator9889%2FDiskUsage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Javinator9889","download_url":"https://codeload.github.com/Javinator9889/DiskUsage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241818896,"owners_count":20025210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","disk-space","disk-usage","du","files","find","shell-script","tables","unix","unix-command"],"created_at":"2024-11-14T18:26:20.308Z","updated_at":"2025-03-04T09:14:31.929Z","avatar_url":"https://github.com/Javinator9889.png","language":"Shell","readme":"# DiskUsage\n*DiskUsage command for listing files, folders and more and get how much space they are using*\n\n**DiskUsage** is a simple but powerful program to retrieve *information about used space* in your disk. It can list **files**, **folders** and more to give you the view you need of your disk.\n\nAnd it *does not need* any other third party program: it is using **basic Unix commands** with specific sintax (you can see what is doing by [clicking here](https://github.com/Javinator9889/DiskUsage/blob/master/dusage#L43)\n\n\n## How to install\n\n**NOTICE THAT THIS PROGRAM WILL ONLY WORK ON UNIX BASED SYSTEMS**\n\n1. Download *autorun.sh* file to your system\n\n\n[![CircleCI](https://img.shields.io/badge/Download%20-autorun.sh-green.svg)](https://goo.gl/LDAL3Q) **(Right click - Save link as...)**\n\n### Directly from Terminal (if you are root)\n```bash\n  su\n  apt-get update\n  apt-get upgrade\n  wget https://goo.gl/LDAL3Q \u0026\u0026 mv LDAL3Q autorun.sh \u0026\u0026 chmod +x autorun.sh #You can get this file without root, it is for simplifying\n  ./autorun.sh\n```\n\n### See available options for using this program\n```bash\n   ./autorun.sh -h\n```\n![BASH EXECUTION](https://raw.githubusercontent.com/Javinator9889/DiskUsage/master/info.png)\n\n### Manually installation\n\nIf **you do not have sudo or root**, there is an available method for you to use *DiskUsage*:\n```bash\n   cd\n   wget https://goo.gl/LDAL3Q \u0026\u0026 mv LDAL3Q autorun.sh \u0026\u0026 chmod +x autorun.sh\n   ./autorun.sh -c\n   export PATH=$PATH:/home/$USER/DiskUsage\n```\nIf everything is OK, if you run ```which dusage``` your *home folder* and execution file shoudl appear\n\n------------------\n\n## How to use\n\n### Invoke command\n```bash\n   dusage\n```\nThis option will display usage in current folder, with *human readable format*. Also, you can use ```dusage -h``` or ```dusage --help``` to get available commands and options\n\n### Different arguments\n\n+ **-r | --reverse**: by *default*, this program shows files in ascending order: **lower files** are at top and **bigger files** at bottom. With this option enabled, you can list files in *reverse order* (**bigger files** at top, **lower files** at bottom)\n```bash\n   dusage -r\n```\n\n+ **-d | --directory** *+ PATH*: if you use **dusage** with no args, it will display current folder usage. If you want to see **how much space is used in another folder/drive**, just add the option *-d* followed by dir to be checked\n```bash\n   dusage -d /var\n   Showing space usage in: /var\n\n   +------+-----------+\n   | Size | Directory |\n   +------+-----------+\n\n   0       /var/lock\n   0       /var/run\n   4,0K    /var/local\n   4,0K    /var/opt\n   16K     /var/lost+found\n   16K     /var/tmp\n   52K     /var/spool\n   68K     /var/mail\n   11M     /var/backups\n   24M     /var/log\n   346M    /var/www\n   444M    /var/lib\n   991M    /var/cache\n```\n\n+ **-f | --file**: basically, instead of showing *folders*, **dusage** will show *what files are using space* in current dir\n```bash\n   dusage -f\n```\n\n+ **-tos | --Terms**: displays *Terms of Service* and usage instructions of this program. Must have a look and **accept them**\n\n**Finally**, it is also possible to combine those commands: *you can list* a directory showing **files** in **reverse order**; current dir **in reverse order** and **files**, etc. Just keep in mind some combinations are not possible, like ```dusage -f -h``` or *giving an non-existing path* ```dusage -d /invented/dir/or/path```.\nAnd program is **always** giving a warning that says: *It is higly recommended to run this program as sudo or SuperUser*. This is for avoiding this problem:\n   \n![ACCESS DENIED](https://raw.githubusercontent.com/Javinator9889/DiskUsage/master/denied.png)\n\n## Terms of Service and Conditions\n\n**dusage  Copyright (C) 2017  Javinator_9889**\n\nThis program comes with ABSOLUTELY NO WARRANTY; for details click link below\n\nThis is free software, and you are welcome to redistribute it\n\nunder certain conditions.\n\nFor more information, please click link below: \nhttps://goo.gl/nAjgpH\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavinator9889%2Fdiskusage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavinator9889%2Fdiskusage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavinator9889%2Fdiskusage/lists"}