logo

Windows

Last Updated: 2022-01-02

Windows 11

  • 64-bit CPU only (x86-64 or ARM64).
  • Firmware: UEFI, (Legacy BIOS is no longer supported).
  • Security: requires SecureBoot and Tursted Platform Module (TPM) v2
  • Windows Terminal will be the default command line experience
  • switching from Master Boot Records (MBR) partitioning to GUID Partition Table (GPT) partitioning

WSL

WSL doc: https://msdn.microsoft.com/en-us/commandline/wsl/about

List, Terminal Distros

List distros:

> wsl -l -v
  NAME            STATE           VERSION
* Ubuntu          Running         1
  Ubuntu-20.04    Running         2

Set default:

> wsl --set-default Ubuntu-20.04
> wsl -l -v
  NAME            STATE           VERSION
* Ubuntu-20.04    Running         2
  Ubuntu          Running         1

Terminate:

> wsl --terminate Ubuntu
> wsl -l -v
  NAME STATE VERSION
* Ubuntu-20.04 Running 2
  Ubuntu Stopped 1

Chmod not working in Windows 10

0777 is applied to everything under the mnt but not in ~; if you move files back to mnt, permission will be reverted back to 777

Interoperability

Find WSL folders in Windows:

One of the main limitations of using WSL is that changing Linux files with a Windows app or tool is not allowed

Find Windows folders in WSL

/mnt/c/Users/<user name>/Desktop will point to C:\Users\<user name>\Desktop

How to Enable Windows Subsystem for Linux

Ubuntu Bash is not enabled by default.

(no longer need to turn on the Developer Mode)

  • open Control Panel app
  • click Programs
  • click Turn Windows features on or off
  • enable Windows Subsystem for Linux

How to check motherboard info

Start menu > Command Prompt. Type the

wmic baseboard getproduct,Manufacturer,version,serialnumber

Open the Run command ([Windows key] + [R]), type

msinfo32

and click on OK to open System Information. Click on System summary and you'll get an overview of all your hardware components. Search for an entry named Motherboard (or Baseboard).

How to Enable Developer Mode

developer mode: settings -> For developers

control panel->programs->windows features->windows subsystem for linux

How to create windows 10 bootable usb on macOS

https://www.windowscentral.com/how-create-windows-10-installer-usb-drive-mac

Boot Camp comes with your Mac and lets you install Microsoft Windows.

How to Speed Up Windows

Disable startup programs

  • Right-click the task bar, select Task Manager
  • Select Startup tab
  • Right-click programs you do not want to run during startup, and click Disable

Disable visual effects

  • type Advanced in the taskbar's search box, select View advanced system settings
  • in the Visual Effects tab, tweak your visual effect settings, or select Adjust for best performance