fun tip, if you have a samba share and your devices are in the same network, use a file manager that can connect to local network (like explorer by speed software), and transfer your files wirelessly. it seems to be equally fast too, i haven’t used a cable for ages except for killing updaters and bloatware with adb.
You need the package gvfs-mtp installed, if you want to do it via file manager. Or the adb tools for cli.
But really something you could have googled 3x in the time you asked this.
For my LineageOS phone I use ADB: adb pull /sdcard/DCIM/Camera
to get photos I’ve taken for example.
OP may need to install ADB and enable USB debugging. Here’s a guide if they don’t know how
If OP installed GrapheneOS they likely already have adb and USB debugging configured.
That said, as recommended in the FAQ, one should use android-file-transfer, since enabling USB debugging (and using adb) is a security breach
Actually, I always end up using ADB tools to get files or photos, you can get recursive files to get them all. I do it even with people that tries to get photos from their Windows machines, so I don’t think it’s a problem with Linux neither. This is the best way to get safely and correctly all your files.
I’d use Kdeconnect or syncthing