How to include /snap/bin in the PATH environment variable so that I can use Scrcpy in Ubuntu 20.04?

For some reason, I cannot use Scrcpy in Ubuntu anymore. And the reason is this:

pranav@exam ~> scrcpy
Command 'scrcpy' is available in '/snap/bin/scrcpy'
The command could not be located because '/snap/bin' is not included in the PATH environment variable.
scrcpy: command not found

Does anyone having the same issue?!

1 Like