maven-3.5.3归档到固定目录,无法归档
Tofloor
poster avatar
spq
deepin
2018-04-09 05:54
Author
我尝试了,使用终端归档maven-3.5.3-bin.tar.gt,但是无法找到目录。
题主也只是一个liunx小白,科普了网络资料(修改绝对路径,相对路径),还是无法解决。
Reply Favorite View the author
All Replies
avatar
150******40
deepin
2018-04-09 06:26
#1
mkdir -p ~/maven
tar -zxvf maven.tar.gz -C ~/maven

参考:http://www.runoob.com/w3cnote/linux-common-command.html
Reply View the author
avatar
woodelf
deepin
2018-04-09 06:54
#2
你需要学习下文件和路径的基础知识,-C参数后面的输出路径一直就没写对
Reply View the author
avatar
spq
deepin
2018-04-10 03:21
#3
https://bbs.deepin.org/post/155132
你需要学习下文件和路径的基础知识,-C参数后面的输出路径一直就没写对

好的,大佬
Reply View the author
avatar
spq
deepin
2018-04-10 04:34
#4
https://bbs.deepin.org/post/155132
mkdir -p ~/maven
tar -zxvf maven.tar.gz -C ~/maven

感谢你!
Reply View the author
avatar
spq
deepin
2018-04-10 04:40
#5
问题,已经解决,主要还是自己对Linux系统的终端命令不熟悉。
使用‘su’获得root用户权限(不然在归档时,会导致再归档时,tar【选项】【FILE】目标文件权限不足无法创建)
然后使用,tar -xvf 解压文件 -C 目标文件
Reply View the author