@vinayak2003 You can use Cmd/Ctrl + Shift + V to paste any code or command in Ubuntu Terminal. You can configure this setting in ubuntu terminal settings.
You could also try this method if you are trying to have a bidirectional clipboard between both OS.
@vinayak2003 Please configure your terminal settings and enable this shortcut. You could also try this method if you are trying to have a bidirectional clipboard between both OS.