How to Use :
- Change permission to Execute
sudo chmod +x change-mac
- Add this file to ~/.bashrc file
nano ~/.bashrc
Now Add This line
source /path/to/change-mac
source ~/.bashrc
or restart the terminal- Run by
change-mac
| will change the mac to the one, which is written in script
change-mac 00:11:22:BD:DC:52
| will change to user provided mac address