window下解压zip和rar文件以及copy获取时间段内数据



.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;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值