Windows CMD Cheatsheet

2020-04-18

This article is a bit old and the content may be outdated, so please refer to it with caution and remember to check the latest official materials (such as documentation, etc.)

Create Soft / Hard link #

Using ln in WSL does not create Windows capable symlinks. To do so, open CMD with administrator privilege, and use mklink command. Notice that mklink has an odd argument order.

To make soft link for directory:

mklink /D Link Target
bat

Target is the directory which already exist.

Type mklink for more information.

Checkout battery info #

powerconfig /batteryreport
bat

Checkout HTML generated at $HOME/battery_report.html

Leave your comments and reactions on GitHub