Thank you Elvin, but that command shows all the vlans which my device have learnt from VTP server (as my device is VTP client), I mean a show command to just show the ports which they were assigned to a VLAN I mean switchports not all of the ports and all VLANS !
Yes, as Vijay wrote the "show vlan id XVLAN" can show you the exact VLAN and port associated to that specific VLAN including not only access ports, but trunks as well.
Thank you guys, but in this way I have to mention the Vlan I am searching for, I need a command if possible to show all ports with their Vlans !!
The command that Elvin mentioned should show you what local ports have been assigned to a particular VLAN. The trunk ports are not included in that output. You can also use "sh int switchport | i Name|Access".