These are instructions on how to root OnePlus X using the TWRP recovery on Windows Computer.
Requirements: Your smartphone should have at least 20-30 percent of battery to perform the rooting process.
The above command helps to know the list of attached devices to the computer.
Optional: You can also verify the root status of your device by using the Root Checker Application.
[*] No data loss process: Your data including contacts, pictures, videos, music wont be affected using the above method. In short, no data loss process.
[*] OnePlus Stock Firmware: If you are looking for the original firmware for your device, then head over to Download OnePlus Stock Firmware page.
[*] OnePlus USB Driver: If you are looking for the original USB Driver for your device, then head over to Download OnePlus USB Driver page.
[*] Big thanks to Chainfire for their SuperSU file for OnePlus X, without this tool the above tutorial was not possible.