linux - 解压 tar.gz 文件

使用 wget 命令行我得到了一个 tar.gz 文件。我在 root@raspberrypi 中下载了它。有什么办法可以解压到/usr/src文件夹下吗?

最佳答案

使用 tar 的 -C 选项:

tar zxvf <yourfile>.tar.gz -C /usr/src/

然后,tar 的内容应该在:

/usr/src/<yourfile>

https://stackoverflow.com/questions/16356460/

相关文章:

python - 重命名 Pandas 中的特定列

c - 什么是 vdso 和 vsyscall?

python - 是否可以将另一个版本的 Python 安装到 Virtualenv?

python - 将一对列表/元组解压缩成两个列表/元组

linux - 在 LINUX 中确定 .a 库/存档是 32 位还是 64 位?

linux - 如何粘贴到终端?

python - tight_layout() 不考虑数字字幕

python - 是否可以按降序使用 argsort?

python - 通过 'ElementTree' 在 Python 中使用命名空间解析 XML

linux - 多个 GZip 文件的快速连接