Howto find /dev file associated with a device.
Howto find device associated with a /dev file.
Suppose we want to check that the file "/dev/rfcomm0" associated with which device.
For that use following command.
#echo 1 > /dev/rfcomm0
If you get an indication in your device,then you can ensure that.
Suppose your device is a mobile and connected via bluetooth.
Then above command show a connection request in your mobile.
------------------------------------
Examples:
#echo 1 > /dev/audio <---- You can hear a sound in speaker
#echo 1 > /dev/cd <---- You can see CD drive LED blink
#echo 1 > /dev/dvd <---- You can see DVD drive LED blink
#echo 1 > /dev/stdin <--- Print "1" in terminal
#echo 1 > /dev/stdout <--- Print "1" in terminal
#echo 1 > /dev/stderr <--- Print "1" in terminal
------------------------------------
No comments:
Post a Comment