.zip 和 .rar 是Windows下常用的压缩文件,在Ubuntu中如何解压?
【解压.zip文件】
Ubuntu中貌似已经安装了unzip软件,解压命令如下:
1
unzip ./FileName.zip
如果没安装unzip的话,可以通过如下命令安装:
1
sudo apt-get install unzip
【解压.rar文件】
#安装unrar软件#
1
sudo apt-get install unrar
#卸载unrar软件#
1
sudo apt-get remove unrar
#解决.rar文件#
1
unrar x ./FileName.rar
$unrar --help
用法: unrar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>
<命令>
e 解压文件到当前目录
l[t,b] 列出压缩文档信息[technical, bare]
p 打印文件到标准输出
t 测试压缩我俄当
v[t,b] 列出压缩文档的详细信息[technical,bare]
x 解压文件到完整路径
所以,常用unrar命令为
unrar x ./FileName.rar
(2)
\copy shixin_offline_predict_results to /home/scdata/all_model_train_data/shixin/shixin_offline_predict_results.csv with csv header;
\copy (select * from t_companies_features where update_at between to_date('2018-08-01','yyyy-MM-dd') and to_date('2018-08-15','yyyy-MM-dd')) to '/home/sc/PycharmProjects/sc/model-feature-engine/test_risk_model_features/test_revoke_5000_com.csv' with csv header;
window下解压zip和rar文件以及copy获取时间段内数据
最新推荐文章于 2023-08-16 11:34:27 发布