Hi , I have seen a lots of files in /dev directory, what are they and activities?
Which type of files are reside in /dev directory?
Hi Dunley,
This is intelligent question, actually /dev directory is responsible to hold device files.
It means all the device you have in your computer like hard disc, USB drive, CD ROM, RAM, you can see all the devices are files in here.
The Linux operating system treats everything is a file, even hard disc, floppy disc also.
Britnu Salu
Which type of files are reside in /dev directory?
Hi,
The /dev directory in Linux means “devices” and it shows up all the devices that are attached to your Linux system.
In Linux, devices are considered as files, they are readable and writable like the way files are.
For example, if you see /dev/cdrom is the your CD drive, /dev/had is the IDE drive. All devices detected by your Linux are all located in the /dev directory that is why there are hundreds of those file entries.
Some which are:
/dev/psaux – your mouse
/dev/pda – parallel port IDE
/dev/pcd0 – parallel port CD ROM
/dev/sda – SCSI
/dev/ttyS0 – serial port.
Regards,
Taylor