Unjar to a specific destination

前端 未结 2 2018
栀梦
栀梦 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:21

    "Is there a way for me to do it without having to move the jar file to bar?"

    You can do this by entering bar and executing the extract command from there, like this:

    cd bar
    jar xf ../my.jar
    

提交回复
热议问题