ar Command Examples

Create, modify, and extract from Unix archives. Typically used for static libraries (.a) and Debian packages (.deb). See also: tar. More information: https://manned.org/ar.

ar x {{path/to/file.a}}

ar t {{path/to/file.ar}}

ar r {{path/to/file.deb}} {{path/to/debian-binary path/to/control.tar.gz path/to/data.tar.xz ...}}

ar s {{path/to/file.a}}

ar rs {{path/to/file.a}} {{path/to/file1.o path/to/file2.o ...}}