Refresh Network Connections with a Command

This video shows you hot to refresh network/internet connections.
Refresh Network Connections Script
For Upstart: sudo service network-manager restart
For systemd: sudo systemctl restart network-manager
Create a script to run this command with one click:
nano refresh-net
Add to file:
# Refresh network connections
sudo service network-manager restart
sleep 5
Ctrl+o saves file.
Make the file executable:
chmod +x refresh-net
Move to /bin:
sudo mv refresh-net /bin/
Please be sure to give EzeeLinux a ‘Like’ on Facebook! Thanks!
Check out and for more about Linux.


Welcome to my blog. My name is Akis Mparekas. I am a freelance web developer from Greece. At the same time I am taking my first steps in game development (unity) and animation (blender). I also create cool stuff, either for work or for fun. When I have time, I write tutorials and I blog.