apt Follow Ubuntu 镜像使用帮助 conda Follow Anaconda 镜像使用帮助 pypi Follow pypi 镜像使用帮助 npm npm i -g nrm --registry=https://registry.npm.taobao.org nrm ls nrm use taobao 淘宝 NPM 镜像 nrm -- NPM registry manager
apt Follow Ubuntu 镜像使用帮助 conda Follow Anaconda 镜像使用帮助 pypi Follow pypi 镜像使用帮助 npm npm i -g nrm --registry=https://registry.npm.taobao.org nrm ls nrm use taobao 淘宝 NPM 镜像 nrm -- NPM registry manager
URL of GitHub avatar: https://github.com/[username].png URL of GitHub identicon: https://github.com/identicons/[username].png For example, my avatar: https://github.com/lirc572.png My identicon: https://github.com/identicons/lirc572.png
WSL has been very useful as a Linux environment running on Windows 10. One problem for WSL is, however, that it is installed to the C drive by default. It would easily take up over 10 GB of space after installing some programming tool chains on it. Recently, my C drive was once again filled by software that can only be installed on C drive. As I browse for files to remove, I found out that my WSL installation was taking 15 GB of storage! After some online search, I managed to move my WSL file system out of C drive. Here is a link to the solution I referred to. I will also briefly talk about it here. Move WSL File System ::: tip Note that all commands below should be run in PowerShell ::: First, list your WSL distros (wsl -l): PS C:/> wsl -l Windows Subsystem for Linux Distributions: Ubuntu20.04 (Default) Ubuntu-20.04 Take note of the name of the distro you want to move (E.g. Ubuntu-20.04) Export the distro to a tar file (wsl --export <distro-name> <path-of-tar-file>). E.g.: PS C:\> wsl --export Ubuntu-20.04 E:\ubuntu-wsl.tar After the export finishes, import the tar file to your desired location (wsl --import <distro-name> <path-of-desired-location> <path-of-tar-file>). E.g.: PS C:\> wsl --import Ubuntu20.04 E:\WSL\Ubuntu20.04 E:\ubuntu-wsl.tar After this is done, test the new distro with wsl -u <username> -d <distro-name>. E.g.: PS C:\> wsl -u rochor -d Ubuntu20.04 If it works as intended, you can then safely remove the original distro (wsl --unregister <distro-name>). E.g.: PS C:\> wsl --unregister Ubuntu-20.04 PS C:\> wsl -l…
echo "Hello world"