Useful CLI commands
[May]
1 minute read

These are just documentation for me because I don’t want to remember them. It is not a guide for anything.

  • remap right alt key with context menu button (I miss the context button on my Thinkpad)

    // add this to your startup script to make it permanent
    xmodmap -e "keycode  108 = Menu"
    
  • awk

    awk '/regex/'
    awk '!/regex/'
    
    awk 'BEGIN{a=5; b=2.5; print a+b}'
    awk '{sub(/:/, "-")} 1' // subtitution
    awk '{gsub(/:/, "-")} 1'
    
  • List network devices

    Win:
    arp -a
    
  • Make VS Code remember Github credentials; Easier if you are working with multiple accounts for work and personal.

    git config credential.helper store
    
  • Install Node

  • Install NPM

    curl -L https://npmjs.org/install.sh | sudo sh