Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useful disk usage commands #65

Open
ctb opened this issue Sep 1, 2023 · 4 comments
Open

useful disk usage commands #65

ctb opened this issue Sep 1, 2023 · 4 comments

Comments

@ctb
Copy link
Member

ctb commented Sep 1, 2023

ncdu gives a nice text/graphics interface to examine folder hierarchies. It's conda installable from conda-forge.

@ctb
Copy link
Member Author

ctb commented Sep 1, 2023

I like du -sk * .??* | sort -n too.

Colton
On it! I did try to use the quota command but it did not return any info. Any idea how to see your quota and current usage?

df -k . for each disk

we don’t have per-account quotas, they partition the physical disks into logical allocations that are shared across accounts

so df returns the right numbers

@ccbaumler
Copy link
Contributor

In reference to seeing 'Disk quota exceeded:'

use du -sh * in the home dir and then using the same command in each big directory is more than enough to find and eliminate the large stuff and clear up space.

Also this for viewing the hidden directories du -hs .[^.]*! This can be really useful for .git directories.

And a combo that returns everything in a single stdout!

du -sh .[^.]* && du -sh *

@ccbaumler
Copy link
Contributor

@mr-eyes has another useful command for viewing directory sizes

du -h --max-depth=1 | awk '{print $1"\t"$2}' | sort -hr

@ccbaumler
Copy link
Contributor

A simply, easy way to see the resource allocation in directories.

https://github.com/ccbaumler/diskspace-checker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants