Steps
1. Run the windows powershell as administrator
2. Get details about the drives and partitions
wmic diskdrive list brief
3. Mount the drive or partition by the bellow command
wsl --mount PATH_FROM_STEP2
Example: wsl –mount \\.\PHYSICALDRIVE0 –partition 1
If you haven’t install the WSL, windows will install it for you automatically. If not, try wsl --install
. After the WSL is installed, you will need to install a linux system by your own.
wsl --install -d ubuntu
4. Open Windows File Explorer and read the data in the disk
Path: “This PC\Linux\Ubuntu\mnt\wsl\PHYSICALDRIVE0p0”
5. Unmout if needed
wsl –unmount PATH_FROM_STEP2
or just shut it down
wsl.exe --shutdown
Reference
Commands
list all branches
git branch -a
get the difference between two branches, including a local branch and a remote branch
git diff <mainbranch_path> <remotebranch_path>
read more
Upgrading stack of an app
Use the stack:set command via Heroku CLI:
heroku stack:set heroku-22 -a <app name>
Then rebuild your app to take effect of the change. You can create an empty commit to trigger a new build:
git commit --allow-empty -m "Upgrading to heroku-22"
git push heroku master
read more
Commands
Install the “at” package
sudo apt-get update
sudo apt-get install at
read more
Test commands
Build and start a local server
bundle exec jekyll serve
Browse your site by http://localhost:4000
read more