ar – create, modify, and extract from archives


ABOUT ar
The archiver, also known simply as ar, is a Unix utility that maintains groups of files as a
single archive file. Today, ar is generally used only to create and update static library files
that the link editor or linker uses and for generating .deb packages for the Debian family; it
can be used to create archives for any purpose, but has been largely replaced by tar for
purposes other than static libraries.[3] An implementation of ar is included as one of the GNU
Binutils.[2]

[bash]
$ar artest.a artest.txt
ar: two different operation options specified
$ar r artest.a artest.txt
ar: creating artest.a
$file artest.a
artest.a: current ar archive
$cat artest.a
!<arch>
artest.txt/ 0 0 0 644 36 `
https://youtu.be/-jXqwdd3hk4?t=2418&#8217;
$cat artest.txt
https://youtu.be/-jXqwdd3hk4?t=2418&#8217;

[/bash]

[text]
Single quotes in the shell session are used to hide certain things in wordpress post
They are not part of the real content.
[/text]

LINKS
https://www.geeksforgeeks.org/ar-command-in-linux-with-examples/
https://en.wikipedia.org/wiki/Ar_(Unix)


%d bloggers like this: