Tag Archives: cmd

How to enable/disable a network interface on Windows from command line

Assuming “Ethernet” is the name of the network connection you need to enable or disable: To enable: netsh interface set interface “Ethernet” enable To disable: netsh interface set interface “Ethernet” disable

Posted in Windows | Tagged , , | Leave a comment

How to beautify XML text on command line in Ubuntu

sudo apt install libxml2-utils echo ‘your xml stuff here’ | xmllint –format – You will get a beautiful well-organized XML output. Sources: https://jahansyed.co.uk/2016/04/22/how-to-install-xmllint-in-ubuntu/ https://stackoverflow.com/questions/16090869/how-to-pretty-print-xml-from-the-command-line

Posted in Linux | Tagged , , , , , | Leave a comment