Linux Directory Structure explained: /dev folder
This is our fourth post on Linux Directory structure series. Some of the posts already covered are Linux Directory Structure explained: /boot folder Linux Directory Structure explained: /bin folder What is lost+found directory in Linux/Unix? Today we will see what is /dev folder and it’s uses. Linux/Unix treat everything as files. One classic example is it treats hardware devices too as files. All hardware files are present in /dev(Device ) folder. If we observe the /dev folder you can find files/folders related to different hardware’s present in the machine. Below are some hardware files and their uses and explanation. 1. /dev/alarm This is a hardware file used to keep track of time when system goes hibernation or suspended when it is idle. When your system goes hibernation most of your hardware will be shutdown, HDD rotation is reduced to as low as possible in order to save power. This file is very much useful to keep track of system time, to do calender updates to user etc. You can say in other words that /dev/alarm will have current time status. This file is used in portable devices such as laptops and mobiles mostly. Click here to know more about this file. 2. /dev/autofs This file is used to mount remote directories locally. This is done automatically when user tries to login by mounting remote directory. The mounting is done...
Read More