It depends on the version you were running, and the operating system, and when you say you are looking for your bitcoins, what you are really looking for are the private keys.
Bitcoin Core
The keys are in a file called wallet.dat
which was stored in the bitcoin core data directory, which I'll call <data-dir>
. The wallet.dat
file was stored in <data-dir>/
on versions prior to v0.16.0
and moved to <data-dir>/wallets
in later versions, see files.md. This uses the bitkeys
format.
Linux
On linux, the data directory <data-dir>
is ~/.bitcoin/wallets/wallet.dat
Windows
On Windows, the data directory <data-dir>
is %APPDATA%\Bitcoin\wallet.dat
Mac
On Mac, the data directory <data-dir>
is ~/Library/Application Support/Bitcoin/
Reference: https://en.bitcoin.it/wiki/Data_directory#Mac
The next question is "How do I restore the keys?", and there are many answers for that already, example: Import wallet.dat into a new Bitcoin-Qt client