martes, 20 de diciembre de 2022

Check sieze of each directory

 root@ip-172-31-92-223:/var/lib# du -h --max-depth=1 /  | grep -v cannot

84K     /root

1.4G    /snap

3.0G    /var

16K     /lost+found

31M     /home

920K    /run

60M     /opt

4.0K    /srv

7.4M    /etc

1.8G    /usr

4.0K    /media

84K     /tmp

0       /sys

du: cannot access '/proc/14418/task/14418/fd/4': No such file or directory

du: cannot access '/proc/14418/task/14418/fdinfo/4': No such file or directory

du: cannot access '/proc/14418/fd/3': No such file or directory

du: cannot access '/proc/14418/fdinfo/3': No such file or directory

0       /proc

73M     /boot

28K     /dev

4.0K    /mnt


https://linuxize.com/post/how-get-size-of-file-directory-linux/

No hay comentarios:

Publicar un comentario