Extract content of .war file in mac

A WAR file (Web Application Resource or Web application Archive) is a file used to distribute a collection of files and folders associated with web application. Sometimes we want to look inside the war file to know what files or folders are inside the war file.
Jar -xvf
jar with option -xvf will extract the content of the war file. Following command will extract the content of blogapp.war file into the current directory.
jar -xvf blogapp.war
Content of the blogapp.war file