Which type of files are reside in /dev directory?

Asked By 20 points N/A Posted on -
qa-featured

Hi , I have seen a lots of files in /dev  directory, what are they and  activities?

SHARE
Best Answer by Taylor Laura
Answered By 0 points N/A #133391

Which type of files are reside in /dev directory?

qa-featured

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

Best Answer
Best Answer
Answered By 15 points N/A #196497

Which type of files are reside in /dev directory?

qa-featured

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
 

Related Questions