I am migrating from Mac to Linux. If it were not for the different directory structures for data, I would not have asked this and just copied app data and tested myself.
The torrc is in the Tor Browser Data directory at Browser/TorBrowser/Data/Tor inside your Tor Browser directory.
On macOS:
The torrc is in the Tor Browser Data directory at ~/Library/Application Support/TorBrowser-Data/Tor.
The paths are different and on Mac TorBrowser-Data contains – it seems, contents of Tor Browser and of TorBrowser/Data and that is a few directories, so I’m not sure where what directory should be moved, or what else to do so the migration process is flawlessly executed.
Hmmm depending on what you mean with ‘migrating’. If you just want to take over the torcc file that is easily doable by copying the contents of your torcc file on MacOS and copy/paste them in the torcc on your Linux. Copying the torcc file is common to do and should not give any issues.
On MacOS it’s located under: ~/Library/Application Support/TorBrowser-Data/Tor
On Linux it’s located under: ./tor-browser/Browser/TorBrowser/Data #relative to your installation path
You can also just do a file search on both systems.
IG you can do the same for your profile directory which will be located in your profiles folder under TorBrowser-Data/Browser/<your profile> under MacOS, and tor-browser/Browser/TorBrowser/Data on Linux.
Due to the portable nature of Tor you might even succeed with copying the contents of ~/Library/Application Support/TorBrowser-Data/ #containing dirs 'Browser' and 'Tor' from MacOS to tor-browser/Browser/TorBrowser #also containing dirs 'Browser' and 'Tor' to Linux.
But personally besides copying the contents of torcc I wouldn’t bother too much with trying to ‘migrate’ from MacOS to Linux by copying files. Install Tor on Linux, take over the contents from torcc and configure your other settings manually, then you’re sure an important configuration by accident didn’t got migrated.
Also, only always transfer your configuration files from one system to another using offline methods like a flash drive, never use online file transfer.