how to change the mode of network in kali from monitor to default code example

Example 1: how to change the mode of network in kali from monitor to default

sudo ifconfig wlan0 down      (wlan0 is network card name fing yours using ifconfig)
sudo iwconfig wlan0 mode managed 
sudo ifconfig wlan0 up
sudo service network-manager restart

Example 2: how to change the mode of network in kali from monitor to default

sudo ifconfig wlan0 down      (wlan0 is network card name fing yours using ifconfig)
sudo iwconfig wlan0 mode managed 
sudo ifconfig wlan0 up
sudo service network-manager restart