how to unzip a file in a system directory

本文介绍了如何使用Linux下的tar命令来解压不同格式的压缩文件。通过几个具体的例子展示了如何利用tar命令进行bzipped文件的解压,并提供了常用选项如x(提取)、v(详细模式)、j(用于bzipped文件)等的说明。

sudo unzip tbb44_20151115oss_win_0.zip -d /opt


sudo tar -xzf libQGLViewer-2.6.3.tar.gz -C /opt



General Method
Navigate to the directory where you want the file(s) extracted, such as:


cd /mnt/sourcecode/


Then you can un-tar and un-zip the file with a single tar command:


tar -vxjf /mnt/mydownloads/archive.tar.bz2


x - extract
v - verbose output (lists all files as they are extracted)
j - deal with bzipped file
f - read from a file, rather than a tape device

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值