首页 > linux解压rar文件,如何解压之后保持以前的目录,unrar该怎么写参数?

linux解压rar文件,如何解压之后保持以前的目录,unrar该怎么写参数?

linux解压rar文件,如何解压之后保持以前的目录,unrar该怎么写参数?


可以看看 oh-my-zsh 里的 x(extract) 函数,解压各种压缩文档。

extract 'x' alias - swiss knife for archive extracting

https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/extract


bs伸手党...


rar x 或者 7z x。麻烦看一下文档好不……

>>> rar

RAR 5.20   Copyright (c) 1993-2014 Alexander Roshal   2 Dec 2014
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
...

你之前是用的 e 吧?

【热门文章】
【热门文章】