How to set the caps lock key to be another control, from the command line, in Linux:
setxkbmap -option ctrl:swapcaps