Live Chat Help Support Software
WebTop

Linux command Ar by live chat help support software expert mioot.com

Linux command Ar - Help with Linux syntax & live chat help support software solution provider for business websites by mioot.com

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

ar

ar key [args] [posname] [count] archive [files]

Maintain a group of files that are combined into a file archive. Used most commonly to create and update static library files, as used by the link editor (ld). Compiler frontends often call ar automatically. Only one key letter may be used, but each can be combined with additional args (with no separations between). posname is the name of a file in archive. When moving or replacing files, you can specify that they be placed before or after posname. ar has largely been superseded by tar and bzip2.
Keys
d

Delete files from archive.

m

Move files to end of archive.

p

Print files in archive.

q

Append files to archive.

r

Replace files in archive.

t

List the contents of archive or list the named files.

x

Extract contents from archive or only the named files.

Arguments
a

Use with r or m key to place files in the archive after posname.

b

Same as a, but before posname.

c

Create archive silently.

f

Truncate long filenames.

i

Same as b.

l

For backward compatibility; meaningless in Linux.

N

Use count parameter. Where multiple entries with the same name are found, use the count instance.

o

Preserve original timestamps.

P

Use full pathname. Useful for non-POSIX-compliant archives.

s

Force regeneration of archive symbol table (useful after running strip).

S

Do not regenerate symbol table.

u

Use with r to replace only files that have changed since being put in archive.

v

Verbose; print a description of actions taken.

V

Print version number.

Example

Replace mylib.a with object files from the current directory:

ar r mylib.a `ls *.o`


 

 

 

 

 

 

 

 

 

 

How would you rate the usefulness of this content?
1 2 3 4 5
Poor Outstanding
Spam Verification
Spam Verification Code

Content rating:




people have rated this content.

 
If you are having trouble in using Ar linux command , please live chat with our Linux expert and web hosting live support professional 24X7 for online live help 24x7.


Related Linux commands
  apt
ar
arp
arch
as
aumix
alsactl
autoupdate
addr2line
at
arecord
addresses
aplaymidi
aclocal
accept
acpi_available
amidi
automake
atd
autoscan
apmd
audiosend
aplay
aconnect
acpid
access
apropos
arecordmidi
autoreconf
autoheader
autoconf
anacron
atrm
amixer
atq
acpi
apm
agetty
 
   
Live chat software user manual
Live chat software for live support
Online chat software