You won't reach 10MB, but a CLI-only Ubuntu 22.04 server can be stripped to disk usage – which compresses to about 180 MB as a tar.xz.
The compressed Ubuntu image can be run in a Live environment, allowing users to test the operating system without installation. When booted, the system decompresses into RAM, providing a functional Ubuntu experience. ubuntu highly compressed 10mb
You may be thinking of one of these instead: You won't reach 10MB, but a CLI-only Ubuntu 22
: A bare Linux kernel can be compressed to under 10MB, but it would have no user interface, tools, or applications. Incomplete or Malicious Files You may be thinking of one of these
If you need to compress an existing Ubuntu file (like a PDF or log) down to a specific size like 10 MB on your Ubuntu machine, use these commands: For Archives (XZ/7zip) : These offer the highest compression ratios. # Use xz for extreme compression tar -cvJf archive.tar.xz /path/to/folder # Use 7zip with ultra settings