The next file types, did you know there are seven different types of Linux files in Linux that includes
directories, links and a whole bunch of other stuff?
Let's look at them one by one.
The first one is a regular file, anything that does not have a letter associated to it in the beginning
of it.
It's a regular file.
Anything that starts with D. It's a directory.
Any attribute of a file that has a URL in front of it is a link.
And anything starts with C is a special file or Devi's file, meaning if you attach a keyboard or a
CPU or memory, anything that is attached to your system, that is also created as a file.
And that file starts with C and there is a socket files starts with S name pipe that starts with P and
a block device that starts with B.
Oftentimes these are the type of questions that are asked during the interview.
They'll ask you, tell me the file that starts with C. What does that file is for or what is the file
that starts with P?
I remember I'm not talking about the file name.
I'm talking about the first column that you see when you run ls minus L that defines that type of file
that you're dealing with.