Install Solana CLI.
# generate a file system wallet
$ solana-keygen recover 'prompt:?key=0/0' --outfile ~/.config/solana/id.json
# enter 'Secret Recovery Phrase' from Phantom Wallet
# check wallet balance
$ solana balance
# view wallet address (public key)
$ solana-keygen pubkey
> abc123
# verify public key matches private key
$ solana-keygen verify abc123
> Verification for public key: abc123: Success