1. Using screen as a serial console

    Published: Tue 20 February 2018
    By Jon M

    In misc.

    Using screen you can connect to any serial device in /dev. A typical USB-to-RS-232 adapter will usually be /dev/ttyUSB0. A physical serial port will usually be /dev/ttyS0.

    screen /dev/ttyUSB0 9600
    
    read more
  2. Published: Tue 03 October 2017
    By Jon M

    In misc.

    Show all iptables rules and include line numbers

    iptables -L INPUT --line-numbers
    

    Replace iptables rule at a specific line number

    iptables -R X INPUT <new rule here>
    
    read more

« Page 2 / 4 »

social