linux - 解压 tar.gz 文件

标签 linux ubuntu debian gzip tar

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

最佳答案

使用 tar 的 -C 选项:

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

然后,tar 的内容应该在:

/usr/src/<yourfile>

关于linux - 解压 tar.gz 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16356460/

相关文章:

linux - 内核自旋锁在释放锁之前启用抢占

linux - 如何启用或配置 ftrace 模块

linux - Ubuntu 无法启动 RabbitMQ 代理

python - docker - 使用 python 图像,添加非免费的 Debian 存储库?

linux - 我的 Makefile 中的 Bash 命令 ID 不起作用

linux - 如何在 cron 中安排每月第 8 个工作日运行的作业

ubuntu - 首先运行所有 'add-apt-repository' 命令,然后运行单个 'apt-get update'

python - 为 Django 设置 SQLite3 时出现错误配置的数据库错误

docker - 如何停止在Dockerfile中打耳光?

linux - 需要 Debian 3.1 完整 iso