# Linux Keylogger # How to use Find your keyboard device Your keyboard device should be in the below format ``` /dev/input/eventX ``` Find it using ```sh $ cat /var/log/Xorg.0.log | grep /dev/input | grep -i keyboard ``` - Run keylogger ```sh $ sudo bin/keylogger /dev/input/eventX ``` Now whatever you type should be printed in the terminal. If you want to keep in log file use ```sh $ sudo bin/keylogger /dev/input/eventX > logfile.txt ``` @TODO 1. Find keyboard device automatically 2. Write logs to structured html file