When running commands that access the Internet, you can prefix the command with `torsocks` to run it through a running Tor instance. You can also use `tor-resolve` to resolve DNS over Tor.
But be careful how you share that Tor connection with other programs/activities, since certain commands could expose data or patterns that deanonymize you.
Useful command, but know your threat model, and know your tools.
Mike Gerwitz's personal Mastodon instance