Find the answer to your Linux question:
Results 1 to 2 of 2
I cant believe i dont know how to do this. Up until now I never needed to though... Anyways say i plug in a usb joystick. How the F do ...
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    80

    Get dev name from device?

    I cant believe i dont know how to do this. Up until now I never needed to though...
    Anyways say i plug in a usb joystick. How the F do I see what dev file it uses in /dev? i want a no-quesitons asked command(s) that returns a filename in /dev.

    ***PLEASE dont just tell me "its /dev/input/js"!!!***

    I tried looking all over but i couldnt find an answer.
    Oh yeah - and im only concerned about input devices

  2. #2
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    Plug in the device. Then open up a terminal and run dmesg. The last ~20 lines or so will have details about the device you just plugged in, and several of those lines will mention the device node assigned to it.
    Stand up and be counted as a Linux user!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...