[問題] 使用unrar解壓,有密碼時該怎樣下指令?

看板Linux作者 (鋼鐵人史塔克)時間4年前 (2020/07/13 10:13), 編輯推噓2(203)
留言5則, 3人參與, 4年前最新討論串1/1
大家好 請問用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 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.228.71.37 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1594606436.A.3B7.html

07/13 11:17, 4年前 , 1F
大概是這樣吧:
07/13 11:17, 1F

07/13 11:18, 4年前 , 2F
unrar *.rar -pYOURPASSWORD
07/13 11:18, 2F

07/13 11:18, 4年前 , 3F
-p和你的密碼中間不用加空格
07/13 11:18, 3F

07/13 15:25, 4年前 , 4F
解一個用英文密碼的壓縮檔試試看就知道是不是中文問題了
07/13 15:25, 4F

08/12 23:20, 4年前 , 5F
yoyodiy
08/12 23:20, 5F
文章代碼(AID): #1V2yDaEt (Linux)
文章代碼(AID): #1V2yDaEt (Linux)