How to use jar command for .war files

Forums: 

How to view contents of a war file with the jar command:

jar tvf mywarfile.war

How to create a .war file example:  

jar cvf mynewarfile.war .