I'm sure I've posted this before, but repetition is the most sincere form of .... something deep and meaningful.
Want to see what's eating your disk in a particular file-system ?
Try: -
du -hs * | sort -h
against, say, /home to see who is eating your disk, especially in terms of specific user's home directories etc.
Geeking in technology since 1985, with IBM Development, focused upon Docker and Kubernetes on the IBM Z LinuxONE platform In the words of Dr Cathy Ryan, "If you don't write it down, it never happened". To paraphrase one of my clients, "Every day is a school day". I do, I learn, I share. The postings on this site are my own and don’t necessarily represent IBM’s positions, strategies or opinions. Remember, YMMV https://infosec.exchange/@davehay
Subscribe to:
Post Comments (Atom)
Note to self - use kubectl to query images in a pod or deployment
In both cases, we use JSON ... For a deployment, we can do this: - kubectl get deployment foobar --namespace snafu --output jsonpath="{...
-
Why oh why do I forget this ? Running this command : - ldapsearch -h ad2012.uk.ibm.com -p 389 -D CN=bpmbind,CN=Users,DC=uk,DC=ibm,DC=com -w...
-
Error "ldap_sasl_interactive_bind_s: Unknown authentication method (-6)" on a LDAPSearch command ...Whilst building my mega Connections / Domino / Portal / Quickr / Sametime / WCM environment recently, I was using the LDAPSearch command tha...
-
Whilst building a new "vanilla" Kubernetes 1.25.4 cluster, I'd started the kubelet service via: - systemctl start kubelet.se...
3 comments:
That is a great idea if you cannot install other tools.
But there is actually a simple and nice tool called "ncdu".
It's part of epel in RHEL/CentOS.
ncdu gives you a list you can navigate :-)
-- Daniel Nashed
Hi Daniel
Thanks for this. Will see whether that exists on Ubuntu as well.
Cheers. Dave
Daniel
Yep, as you rightly suggested ...
apt-get install -y ncdu
dpkg --list|grep ncdu
ii ncdu 1.11-1build1 s390x ncurses disk usage viewer
ncdu -help
ncdu
-h This help message
-q Quiet mode, refresh interval 2 seconds
-v Print version
-x Same filesystem
-r Read only
-o FILE Export scanned directory to FILE
-f FILE Import scanned directory from FILE
-0,-1,-2 UI to use when scanning (0=none,2=full ncurses)
--si Use base 10 (SI) prefixes instead of base 2
--exclude PATTERN Exclude files that match PATTERN
-X, --exclude-from FILE Exclude files that match any pattern in FILE
--exclude-caches Exclude directories containing CACHEDIR.TAG
Thanks again !
Post a Comment