Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to list files inside a .a file

How can I get to know what files are part of my .a file? Which command should I use?

like image 678
Abhinav Avatar asked Jan 25 '12 00:01

Abhinav


1 Answers

I think it would be simpler to use ar for what it's meant (manipulating archives)

ar t foo.a

From man page:

-t List the specified files in the order in which they appear in the archive, each on a separate line. If no files are specified, all files in the archive are listed.

man 1 ar for more info.

like image 91
Antoine Pelisse Avatar answered Sep 24 '22 21:09

Antoine Pelisse