resize2fs

Resize an ext2, ext3 or ext4 filesystem. Does not resize the underlying partition. The filesystem may have to be unmounted first, read the man page for more details. More information: <https://manned.org/resize2fs>.

Debian Debian
RUN apt-get update && \ apt-get install -y e2fsprogs
Ubuntu
RUN apt-get update && \ apt-get install -y e2fsprogs
Alpine
RUN apk add e2fsprogs
Arch Arch Linux
RUN pacman -S --noconfirm e2fsprogs
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y e2fsprogs
CentOS
RUN yum install -y e2fsprogs
Fedora
RUN dnf install -y e2fsprogs
Raspbian
RUN apt-get update && \ apt-get install -y e2fsprogs
click the source code to copy install resize2fs on any operating system with command-not-found.com