HEllo,
There are 7 types of file in Linux/Unix which are mention below :
1) Regular file(-)
2) Directory files(d)
3) Block file(b)
4) Character device file(c)
5) Named pipe file or just a pipe file(p)
6) Symbolic link file(l)
7) Socket file(s)
Any other is there ?
Type of files in Linux / Unix
Re: Type of files in Linux / Unix
Many.
Well it depends on what you mean by "type". For example a JPG file is a JPG type of file. That data is contained in the "magic bytes" in the header of the file.
Well it depends on what you mean by "type". For example a JPG file is a JPG type of file. That data is contained in the "magic bytes" in the header of the file.
Re: Type of files in Linux / Unix
Checking the man page for find(1):
-type c
File is of type c:
b block (buffered) special
c character (unbuffered) special
d directory
p named pipe (FIFO)
f regular file
l symbolic link; ...
s socket
D door (Solaris)
So you are correct for Linux but in the wider UNIX family there is Solaris' door type.
-type c
File is of type c:
b block (buffered) special
c character (unbuffered) special
d directory
p named pipe (FIFO)
f regular file
l symbolic link; ...
s socket
D door (Solaris)
So you are correct for Linux but in the wider UNIX family there is Solaris' door type.