Using native Linux tools gives more control, transparency, and stability compared with attempting unofficial Mi PC Suite ports.
Save as mi-backup.sh :
What are you using? (e.g., Ubuntu, Fedora, Mint) Are you trying to flash a ROM or just transfer files ? mi pc suite download linux better
# Ubuntu/Debian sudo apt install scrcpy