Use adb to transfer files.
First, enable Developer Options by tapping the Build number 7 times. Next, enable USB debugging, then connect the phone to Linux using a USB cable.
adb devices
adb shell ls /sdcard/DCIM
# or
adb shell ls /sdcard/DCIM/Camera
adb pull /sdcard/DCIM/Camera /DESTINATION
Done
If no device is listed after running adb devices, ensure the phone is properly connected to Linux:
lsusb
# If the command is not found, install usbutils
sudo pacman -S usbutils