1 00:00:00,000 --> 00:00:01,949 [No audio] 2 00:00:01,949 --> 00:00:05,639 Linux file types. Did you know there are seven 3 00:00:05,669 --> 00:00:10,349 different types of Linux files in Linux, that 4 00:00:10,349 --> 00:00:13,799 includes directories, links, and whole bunch of 5 00:00:13,799 --> 00:00:16,799 other stuffs, let's look at them one by one. The 6 00:00:16,799 --> 00:00:20,099 first one is a regular file. Anything that does 7 00:00:20,099 --> 00:00:22,739 not have a letter associated to it at the 8 00:00:22,739 --> 00:00:26,789 beginning of it, it's a regular file. Anything 9 00:00:26,789 --> 00:00:31,469 that starts with d, it's a directory. Any 10 00:00:31,469 --> 00:00:34,799 attribute of a file that has an l in front of it 11 00:00:35,159 --> 00:00:39,239 is a link. And anything starts with c is a special 12 00:00:39,239 --> 00:00:42,149 file or device file, meaning if you attach a 13 00:00:42,149 --> 00:00:45,359 keyboard, or a CPU or a memory, anything that is 14 00:00:45,359 --> 00:00:48,659 attached to your system, that is also created as a 15 00:00:48,659 --> 00:00:52,169 file, and that file starts with c. And there is a 16 00:00:52,169 --> 00:00:56,519 socket file starts with s, named pipe that starts 17 00:00:56,519 --> 00:01:00,269 with p, and a block device that starts with b. 18 00:01:00,959 --> 00:01:03,509 Oftentimes, these are the type of questions that 19 00:01:03,509 --> 00:01:05,909 are asked during the interview, they'll ask you 20 00:01:05,909 --> 00:01:11,219 tell me the file that starts with c. What does 21 00:01:11,219 --> 00:01:15,029 that file is for or what is the file that starts 22 00:01:15,029 --> 00:01:17,099 with p. Now remember, I'm not talking about the 23 00:01:17,099 --> 00:01:20,219 file name. I'm talking about the first column that 24 00:01:20,219 --> 00:01:23,459 you see when you run ls -l that defines the 25 00:01:23,459 --> 00:01:26,519 type of file that you're dealing with. 26 00:01:26,519 --> 00:01:27,893 [No audio]