Unjar to a specific destination

前端 未结 2 2024
栀梦
栀梦 2021-02-13 16:23

Is there a way to extract a jar file to a specific directory? For instance, I\'m in foo directory, which contains the subfolder bar; all my jars files are at the same level at b

2条回答
  •  猫巷女王i
    2021-02-13 17:13

    I don't think jar supports this, but unzip does. Try:

    unzip my.jar -d bar
    

    The behaviour is the same as the jar command, because jar files are the same as zip files.

提交回复
热议问题