I have a large .bz2 file of 18 gigabytes and there's no way it will extract on to my very small computer storage. So I got an external hard drive, copied the file to it, and pressed 'extract' expecting it to extract to the hard drive. About 1/4 the way through, it stopped because it ran out of space because it was expanding on my computer storage, not the drive's.
I then looked at this question and tried to extract it like so but it turns out .bz2 is not .zip (obviously) so when I tried putting this command in terminal:
unzip /Volumes/My\ Passport\ for\ Mac/lichess_db_standard_rated_2020-10.pgn.bz2 -d/Volumes/My\ Passport\ for\ Mac
it gave me the following error:
Archive: /Volumes/My Passport for Mac/lichess_db_standard_rated_2020-10.pgn.bz2 End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of /Volumes/My Passport for Mac/lichess_db_standard_rated_2020-10.pgn.bz2 or /Volumes/My Passport for Mac/lichess_db_standard_rated_2020-10.pgn.bz2.zip, and cannot find /Volumes/My Passport for Mac/lichess_db_standard_rated_2020-10.pgn.bz2.ZIP, period.
How can I extract this .bz2 into a hard drive directly?