使用unrar解壓,有密碼時該怎樣下指令? - Linux

Zora avatar
By Zora
at 2020-07-13T10:13

Table of Contents

大家好

請問用unrar(synology NAS內附)解壓連續有密碼的rar檔案時,該怎樣下comand?


例:待解檔案170個,分別是part01.rar.............part170.rar
密碼如下:
感謝BME--BNE0A8E212B72_by_FONE--05C0@18P2P_KJO452A03578LKGF.OG

我試下指令 unrar *.rar

它會跳出 Enter password (will not be echoed) for 後面接一堆字
我在一堆字後面的冒號後面貼上正確密碼,畫面也不會顯示我貼上的密碼
沒辦法看貼的正確與否,很不方便

然後系統回應
The specified password is incor
The specified password is incor
The specified password is incor
The specified password is incor
The specified password is incor
The specified password is incor
The specified password is incor
The specified password is incor
The specified password is incor
The specified password is incor

應該沒貼錯密碼啊~~密碼有中文會有影響嗎?

請問一般unrar解連續rar檔,又有落落長的密碼時,該怎樣下指令才正確?
(web介面解壓超級慢)


請指教 感謝

***************************************************************
附上synology NAS 裡unrar的版本訊息


UNRAR 5.21 freeware Copyright (c) 1993-2015 Alexander Roshal

Usage: unrar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>

<Commands>
e Extract files without archived paths
l[t[a],b] List archive contents [technical[all], bare]
p Print file to stdout
t Test archive files
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
c- Disable comments show
cfg- Disable read configuration
cl Convert names to lower case
cu Convert names to upper case
dh Open shared files
ep Exclude paths from names
ep3 Expand paths to full including the drive letter
f Freshen files
id[c,d,p,q] Disable messages
ierr Send all messages to stderr
inul Disable all messages
kb Keep broken extracted files
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
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
r Recurse subdirectories
sc<chr>[obj] Specify the character set
sl<size> Process files with size less than specified
sm<size> Process files with size more than specified
ta<date> Process files modified after <date> in YYYYMMDDHHMMSS format
tb<date> Process files modified before <date> in YYYYMMDDHHMMSS format
tn<time> Process files newer than <time>
to<time> Process files older than <time>
ts<m,c,a>[N] Save or restore file time (modification, creation, access)
u Update files
v List all volumes
ver[n] File version control
vp Pause before each volume
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

--
Tags: Linux

All Comments

Carol avatar
By Carol
at 2020-07-16T22:32
大概是這樣吧:
Sierra Rose avatar
By Sierra Rose
at 2020-07-19T12:14
unrar *.rar -pYOURPASSWORD
-p和你的密碼中間不用加空格
Ethan avatar
By Ethan
at 2020-07-23T18:42
解一個用英文密碼的壓縮檔試試看就知道是不是中文問題了
Lydia avatar
By Lydia
at 2020-07-25T18:09
yoyodiy

openSUSE LEAP 15.2 is now available.

Mia avatar
By Mia
at 2020-07-04T17:55
Hi,各位前輩好。 小小的推廣一下,openSUSE Leap 15.2 已經釋出囉。 歡迎各位一起來加入openSUSE的行列。 有興趣的可以來這邊參考、下載: https://www.opensuse.org/ 謝謝。 - ...

讓沒有權限的使用者執行特定操作

Lily avatar
By Lily
at 2020-06-30T22:12
我的系統中有支程式會用到一個通訊介面(can0),但使用者反應該介面偶爾會沒 有反應,此時我只要執行: ip link set can0 down ip link set can0 up 就能恢復正常。 但由於該命令需要sudo才能使用,我不想讓使用者成為sudoer,也不想讓使用者 能進行ip命令的其 ...

CentOS8 無法使用pppoe撥號

Daniel avatar
By Daniel
at 2020-06-22T18:33
各位前輩好 小的最近接手一台二手小筆電,礙於主機速度,所以自行灌CentOS8當作練習使用 就灌好系統後,在用yum安裝rp-pppoe套件,發現找不到該套件 網路上最近是用CentOS7做教學 找到一篇由nmcli去建立一pppoe,但還是無法撥號 有沒有前輩有使用CentOS8之後的系統有正常使用pppo ...

修改sysfs的CPU的config卻有時失效

Frederic avatar
By Frederic
at 2020-06-21T23:45
從sysfs,把governor改成userspace 之後把頻率設固定 echo 760000到scaling_setspeed 但cat現在的頻率,還是發現會跑掉 https://imgur.com/Yw6WrqM.jpg 關一顆核心 echo 0去關一顆核心,去cat該核心卻還是1(偶爾會是0) ht ...

scp 其中一個檔案的時間戳一直沒變?

Ophelia avatar
By Ophelia
at 2020-06-19T15:21
資料夾裡面有db file,跟其他log檔。 scp到我的pc上面一個路徑以後,db檔時間一直沒有更動,可是其他檔案的時間戳每次scp 後都會更新。 其他檔案也都沒有改動只是scp過去而已,請問為什麼db檔時間一直沒變? - ...