You can extract a RAR file that is password protected on Linux with a utility called unrar
1sudo apt install unrar
1# provide a password with -p
2unrar e -pPASSWORD FILE.rar
To just extract a file that has no password, only pass the e
flag
1unrar e FILE.rar