linux文件解压与压缩命令

 

linux文件解压与压缩命令

1. 压缩文件: rar a -r test.rar file

2. 解压文件: unrar x test.rar

a : 添加到压缩文件

-r : 递归处理

x : 以绝对路径解压文件

file: 是需要也是文件的路径

test.rar 是一个压缩文件

1. 压缩例子:

lab532@lab532-Z370-HD3:~/Remote_sensing$ rar a -r  Landsat8.rar */Landsat8

RAR 5.30 beta 2   Copyright (c) 1993-2015 Alexander Roshal   4 Aug 2015
Trial version             Type RAR -? for help

Evaluation copy. Please register.

Creating archive Landsat8.rar

Adding    /home/lab532/Remote_sensing/Landsat8/evaluate.py  OK
Adding    /home/lab532/Remote_sensing/Landsat8/train_full.py  OK
Adding    /home/lab532/Remote_sensing/Landsat8/train_s4GAN_unsupervision_adapt.py  OK
Adding    /home/lab532/Remote_sensing/Landsat8/train_s4GAN_full.py  OK
......
Adding    /home/lab532/Remote_sensing/Landsat8/data  OK
Adding    /home/lab532/Remote_sensing/Landsat8/checkpoints  OK
Adding    /home/lab532/Remote_sensing/Landsat8   96%
Done
完成压缩。

2. 解压例子:
lab532@lab532-Z370-HD3:~/Remote_sensing$ unrar x  Landsat8.rar

UNRAR 5.30 beta 2 freeware      Copyright (c) 1993-2015 Alexander Roshal
Extracting from Landsat8.rar

Creating    Landsat8                             OK
Creating    Landsat8/data                        OK
Extracting  Landsat8/data/augmentations.py       OK
........
Extracting  Landsat8/__pycache__/discriminator.cpython-36.pyc  OK
Extracting  SLandsat8/__pycache__/loss.cpython-36.pyc  OK
Creating    Semisup_SemSeg_maste_Landsat8/checkpoints                 OK
Creating    Semisup_SemSeg_maste_Landsat8/results                     OK
All OK
完成解压。

你可能感兴趣的:(linux,文件管理软件与技术)