GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing en.wikipedia.org — Unix file types - Wikipedia (Redirected from Unix file type) The seven standard Unix file types are regular, directory, symbolic link, FIFO special, block special, character special, and socket as defined by POSIX.[1] These types are used in the file system(s) of a Unix or Unix-like operating system (OS). Different OS-specific implementations allow more types than what POSIX requires (e.g. doors in Solaris). A file's type can be identified by the For regular files, Unix does not impose or provide any internal file structure (this may be called file format);[2] therefore, their structure and interpretation is entirely dependent on the software using them.[3] However, the RepresentationsNumericThe type of a file is specified by the file's mode, which consists of the file type and access permissions. The stat() system call returns information about a file in a When written as octal, a mode value shows the Unix file type separately – as the first two digits. For example, mode of octal 100644 indicates a regular file since the Unix file type bit-field is octal 10. This format is used in git, tar, ar, and other contexts.[5] A program can test a mode value to determine Unix file type via macros provided in standard C headers. For example, a program can mask a mode value with SymbolicPOSIX specifies the long format of the
The GNU coreutils version of ExamplesThe command drwxr-xr-x 26 root root 4096 Sep 22 09:29 / Output from command File: "/" Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 802h/2050d Inode: 128 Links: 26 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) ... Output for a symbolic link file starts with an initial lrwxrwxrwx ... termcap -> /usr/share/misc/termcap lrwxrwxrwx ... S03xinetd -> ../init.d/xinetd A named pipe is a special file that can be created via the command prw-rw---- ... mypipe A socket filepath is a type of Unix domain socket, a special file for inter-process communication that unlike named pipes allows for full duplex. A socket is marked with srwxrwxrwx /tmp/.X11-unix/X0 Block and character files represent hardware devices. A device file can be used to control access to a device and to allow file-like operations on the connected device. A character device (serial access) is marked with a crw-rw-rw- ... /dev/null brw-rw---- ... /dev/sda References
| ||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |