Requirements
- Android device (Android 5.0 up)
 - PC, Laptop (Windows, Linux, MacOS)
 - USB cable for connecting android device to PC/Laptop
 
Get scrcpy app
Linux
- Ubuntu 20.04 up, run on terminal 
apt install scrcpy. - Available in snap platform (amd64/arm/i386) scrcpy
Snap is pre-installed and ready to go on KDE Neon, Solus 3 up, Ubuntu 16.04.4 LTS up, Manjaro, and Zorin OS. Follow installing snap if snap is not installed.
Then install it from Snap Store or using commandsudo snap install scrcpy. 
Windows
- Ready to run ,download scrcpy-win64-v*.zip
 - Available in Chocolatey and from shell/command run
1 2choco install scrcpy choco install adb # if you don't have it yet - Available in Scoop and from shell/command run
1 2scoop install scrcpy scoop install adb # if you don't have it yet 
MacOS
Install it with brew install scrcpy
How to Run
Via USB Cable
- Plug android device with usb cable. To communicate PC/laptop with android, run/execute 
adb devicesfrom powershell(windows) or terminal. This command is to check connected devices over adb. - Then run 
scrcpy. 
Via WiFi
- First make sure your device is connected via adb tcp/ip. If not, then you need to connect device with usb cable first, then run 
adb tcpip 5555. Your device and PC/laptop should be in same network. Unplug the device and to check the IP address of the android device Settings -> About Phone -> Status or similar way if android device brand is different.
Then connect the device withadb connect [IP Address:5555]. For example hereadb connect 192.168.0.144:5555. Check if device connected correctlyadb devices - Run in scrcpy directory with 
./scrcpy -s 192.168.0.144:5555 
Summary
 | 
 | 
End
Now, you can display your device to PC/laptop. What you need is install adb and scrcpy, connect via adb and run scrcpy. It’s pretty simple when you using it many time.
Good luck and thanks for reading. Don’t forget to share this article to your friends 😄