On windows command-line I can extract archives like this:
7za e somefile.zip
I know 7zip supports .rar in the gui but can it be done in commandline mode? Thanks
Yes, you can extract .rar archives from command line but only if you use 7z not 7za:
The above applies to both Linux and Windows and the syntax is identical:
The all command lines you can see in "7-zip.chm" help file (from installation):
Extract rar it's like all extract files: 7z x archive.rar
For example: "C:\Program Files\7-Zip\7z.exe" x "C:\Archives\test file.rar"