国产操作系统上多种压缩和解压命令详解 _ 统信 _ 麒麟 _ 中科方德

原文链接:国产操作系统上多种压缩和解压命令详解 | 统信 | 麒麟 | 中科方德
Hello,大家好啊!今天给大家带来一篇在国产操作系统上多种压缩和解压命令详解的文章。压缩和解压缩是我们在日常工作中经常需要进行的操作,尤其是在处理大文件和备份数据时。熟练掌握各种压缩和解压命令,可以极大提高我们的工作效率,减少存储空间的占用,并且方便文件传输。本文将详细介绍在统信UOS、麒麟KOS、中科方德等国产操作系统上,如何使用tar、gzip、gunzip、zip、unzip、bzip2、bunzip2、xz和unxz等常用命令进行压缩和解压操作。欢迎大家分享转发,点个关注和在看吧!

tar 命令

tar(Tape Archive)命令用于创建归档文件,通常与其他压缩命令一起使用。tar命令不仅可以创建归档文件,还可以从归档文件中提取文件,是Linux系统中最常用的归档工具之一。

gzip 和 gunzip 命令

gzip用于压缩文件,gunzip用于解压.gz文件。gzip和gunzip通常与tar一起使用,形成如.tar.gz的压缩归档文件。

zip 和 unzip 命令

zip用于压缩文件,unzip用于解压.zip文件。zip文件是跨平台的,常用于Windows和Linux系统之间的文件传输。

bzip2 和 bunzip2 命令

bzip2用于压缩文件,bunzip2用于解压.bz2文件。bzip2提供了比gzip更高的压缩比,适合需要极大压缩率的场景。

xz 和 unxz 命令

xz用于压缩文件,unxz用于解压.xz文件。xz提供了非常高的压缩比,适用于对文件大小要求严格的场合。

1.查看系统版本

2.查看cpu架构

  1. 创建归档文件

  1. 创建gzip压缩的归档文件

  1. 解压归档文件

  1. 解压gzip压缩的归档文件

  1. 解压到指定目录

  1. 压缩文件

  1. 压缩文件并保留原始文件

  1. 解压缩文件

  1. 解压缩文件并保留压缩文件

  1. 压缩文件

13.递归压缩目录

  1. 解压缩文件

  1. 解压到指定目录

  1. 压缩文件

  1. 解压缩文件

  1. 解压缩文件并保留原始文件

  1. 解压缩文件

  1. 解压缩文件并保留压缩文件

  1. 压缩文件

  1. 解压缩文件

  1. 解压缩文件并保留原始文件

  1. 解压缩文件

  1. 解压缩文件并保留压缩文件

通过本文的介绍,您应该已经掌握了在国产操作系统上使用多种压缩和解压命令的基本方法。无论是单个文件的压缩与解压,还是复杂目录结构的归档与提取,这些命令都能帮助您高效地管理文件。熟练使用这些工具,可以大大提高您的工作效率,尤其在备份、传输和存储数据时。如果您觉得这篇文章有用,请分享和转发。同时,别忘了点个关注和在看,以便未来获取更多实用的技术信息和解决方案。感谢大家的阅读,我们下次再见!

Linux下的rar解压缩工具: RAR 5.60 beta 1 Copyright (c) 1993-2018 Alexander Roshal 21 Mar 2018 Trial version Type 'rar -?' for help Usage: rar <command> -<switch 1> -<switch N> <archive> <files...> <@listfiles...> <path_to_extract\> <Commands> a Add files to archive c Add archive comment ch Change archive parameters cw Write archive comment to file d Delete files from archive e Extract files without archived paths f Freshen files in archive i[par]=<str> Find string in archives k Lock archive l[t[a],b] List archive contents [technical[all], bare] m[f] Move to archive [files only] p Print file to stdout r Repair archive rc Reconstruct missing volumes rn Rename archived files rr[N] Add data recovery record rv[N] Create recovery volumes s[name|-] Convert archive to or from SFX t Test archive files u Update files in archive v[t[a],b] Verbosely list archive contents [technical[all],bare] x Extract files with full path <Switches> - Stop switches scanning @[+] Disable [enable] file lists ad Append archive name to destination path ag[format] Generate archive name using the current date ai Ignore file attributes ap<path> Set path inside archive as Synchronize archive contents c- Disable comments show cfg- Disable read configuration cl Convert names to lower case cu Convert names to upper case df Delete files after archiving dh Open shared files ds Disable name sort for solid archive dw Wipe files after archiving e[+]<attr> Set file exclude and include attributes ed Do not add empty directories en Do not put 'end of archive' block ep Exclude paths from names ep1 Exclude base directory from names ep3 Expand paths to full including the drive letter f Freshen files hp[password] Encrypt both file data and headers ht[b|c] Select hash type [BLAKE2,CRC32] for file checksum id[c,d,p,q] Disable messages ierr Send all messages to stderr ilog[name] Log errors to file inul Disable all messages isnd Enable sound iver Display the version number k Lock archive kb Keep broken extracted files log[f][=name] Write names to log file m<0..5> Set compression level (0-store...3-default...5-maximal) ma[4|5] Specify a version of archiving format mc<par> Set advanced compression parameters md<n>[k,m,g] Dictionary size in KB, MB or GB ms[ext;ext] Specify file types to store mt<threads> Set the number of threads n<file> Additionally filter included files n@ Read additional filter masks from stdin n@<list> Read additional filter masks from list file o[+|-] Set the overwrite mode oh Save hard links as the link instead of the file oi[0-4][:min] Save identical files as references ol[a] Process symbolic links as the link [absolute paths] or Rename files automatically ow Save or restore file owner and group p[password] Set password p- Do not query password qo[-|+] Add quick open information [none|force] r Recurse subdirectories r- Disable recursion r0 Recurse subdirectories for wildcard names only rr[N] Add data recovery record rv[N] Create recovery volumes s[<N>,v[-],e] Create solid archive s- Disable solid archiving sc<chr>[obj] Specify the character set sfx[name] Create SFX archive si[name] Read data from standard input (stdin) sl<size> Process files with size less than specified sm<size> Process files with size more than specified t Test files after archiving ta<date> Process files modified after <date> in YYYYMMDDHHMMSS format tb<date> Process files modified before <date> in YYYYMMDDHHMMSS format tk Keep original archive time tl Set archive time to latest file tn<time> Process files newer than <time> to<time> Process files older than <time> ts[m|c|a] Save or restore file time (modification, creation, access) u Update files v<size>[k,b] Create volumes with size=<size>*1000 [*1024, *1] ver[n] File version control vn Use the old style volume naming scheme vp Pause before each volume w<path> Assign work directory x<file> Exclude specified file x@ Read file names to exclude from stdin x@<list> Exclude files listed in specified list file y Assume Yes on all queries z[file] Read archive comment from file
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

鹏大圣运维

编写不易,还请支持

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值