Map Caps lock as additional Ctrl

Ubuntu (Maybe debian(Maybe linux))

# Edit /etc/default/keyboard

KXBOPTIONS="ctrl:nocaps"

or this:

#!/bin/bash
PATH='org.gnome.desktop.input-sources'
OPTION="'ctrl:nocaps'"
status=$(/usr/bin/gsettings get $PATH xkb-options)
if [[ "$status" == *"$OPTION"* ]]; then
    echo "Already configured"
    exit
fi

new_value="${status%]},'ctrl:nocaps']"
echo "$new_value"
/usr/bin/gsettings set $PATH xkb-options "$new_value"

Run setxkbmap -option ctrl:nocaps for temporarily setup.

Windows

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00

OSX

GOTO preference.