linux

linux extract怎么指定解压路径

小樊
83
2024-12-30 15:17:54
栏目: 智能运维

在Linux中,使用tar命令解压文件时,可以通过-C选项来指定解压路径

tar -xvf file.tar -C destination_path

其中:

例如,如果你想要将example.tar文件解压到/home/user/Desktop/extracted_files目录,你可以使用以下命令:

tar -xvf example.tar -C /home/user/Desktop/extracted_files

0
看了该问题的人还看了