Civil Rights
Movements, leaders, victories and the continuing fight for equality.
Explore the people, places, events, achievements, struggles and stories that shaped our journey.
Movements, leaders, victories and the continuing fight for equality.
Innovation, patents, science, technology and world-changing contributions.
Pioneers, champions, Negro Leagues, records, activism and excellence.
Meet the people whose lives, choices and achievements shaped the journey.
Black towns, communities, institutions and places where history happened.
Moments that changed communities, movements, institutions and the nation.
Mansa Musa was the ruler of the Mali Empire in West Africa. Details recorded here should be sourced; unknown information is left blank.
MORE →Reflects the personal views, recollections, and perspective of the author, Mike Davis.
This is a personal recollection on the Move fire on May 13, 1985
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).[citation needed] A file's type can be identified by the ls -l command, which displays the type in the first character of the file-system permissions field.
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 file command can usually be used to determine what type of data they contain.[4]
The 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 stat structure that includes the file mode in a field named st_mode. The file types and access permissions are typically defined as macros that expand to octal integer literals, and the st_mode field of the stat structure is typically defined as an unsigned integer variable, which normally has a size of 32 bits, although the C language standard allows it to be implementation-specific. However, commonly on Unix-like systems, only 16 bits (6 octal digits) of the st_mode field are used by the octal integer literals that represent different file types and access permissions, where the most significant 4 bits (2 octal digits) are used for the file type, and the remaining 12 bits for the access permissions, which consist of the higher-order 3 bits (1 octal digit) that are used for the setuid, setgid, and sticky attributes, which are commonly referred to as the special permissions, followed by the 9 bits (3 octal digits) that are used for the normal permissions. POSIX specifies the 12 least significant bits of a file's mode to be access permissions, and leaves the file type bits to be an implementation detail.[1]
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 S_IFMT (octal 170000 for the first 4 bits convention) to obtain the Unix file type and then test that value against S_IFDIR to determine whether the file is a directory. Alternatively, a program can use the S_ISDIR macro. S_IFMT is not a core POSIX concept, but a X/Open System Interfaces (XSI) extension. Systems conforming to only POSIX may use some other methods.[1]
POSIX specifies the long format of the ls command to represent the Unix file type as the first letter for an entry.[6]
| type | symbol |
|---|---|
| regular | - |
| directory | d |
| symbolic link | l |
| FIFO special | p |
| block special | b |
| character special | c |
| socket | s |
The GNU coreutils version of ls calls the gnulib function filemode()[7] to format the mode string. FreeBSD uses a simpler approach but allows a smaller number of file types.[8]
The command ls -l reports the file mode string as the first column of output for each file. This string starts with the Unix file type indicator. The following output is for the root directory, from the command ls -l /, which starts with d to indicate that it is a directory. The rest of the first column (rwxr-xr-x) indicates permissions.
drwxr-xr-x 26 root root 4096 Sep 22 09:29 /
Output from command stat / includes the full Unix file type name:
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 l (lower case 'L') and identifies the referenced file path as in this example ls -l output:[6]
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 mkfifo name. A named pipe is identified as p as in this example ls -l output:[6]
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 s as in this example ls -l output:[6]
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 c and a block device (random access) is marked with a b as in this example ls -l output:[6]
crw-rw-rw- ... /dev/null brw-rw---- ... /dev/sda
many audio and graphics file formats (such as MP3 and JPEG) are already well compressed
A file is nothing more than a stream of bytes
file". IEEE Std 1003.1-2017 (POSIX). The Open Group. 2018. Archived from the original on 2018-10-12. Retrieved 2023-10-26.
ls". IEEE Std 1003.1-2008 (POSIX). The Open Group. 11 March 2017. Archived from the original on 3 August 2017. Retrieved 10 February 2017.
Source: Wikipedia. Article content is retrieved live through the MediaWiki API.
The seven standard Unix file types are regular, directory, symbolic link, FIFO special, block special, character special, and socket as defined by POSIX. 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 ls -l command, which displays the type in the first character of the file-system permissions field. For regular files, Unix does not impose or provide any internal file structure (this may be called file format); therefore, their structure and interpretation is entirely dependent on the software using them. However, the file command can usually be used to determine what type of data they contain.
For information on computer file types, see: File format For information relating to specific operating systems, see also: Apple file types Macintosh OSTypes Uniform type identifier Unix file types Windows file types For a list of filename extensions, see list of file formats list of filename extensions (alphabetical) For information on related concepts, see also: file system extended attributes
file is a shell command for reporting the type of data contained in a file. It is commonly supported in Unix and Unix-like operating systems. As the command uses relatively quick-running heuristics to determine file type, it can report misleading information. The command can be fooled, for example, by including a magic number in the content even if the rest of the content does not match what the magic number indicates. The command report cannot be taken as completely trustworthy. The Single UNIX Specification (SUS) requires the command to exhibit the following behavior with respect to the file specified via the command-line: If the file cannot be read, or its Unix file type is undetermined, the command will report that the file was processed but its type was undetermined The command must be able to determine the types directory, FIFO, socket, block special file, and character special file A zero-length file is reported as such An initial part of file is considered and the command is to use position-sensitive tests The entire file is considered and the command is to use context-sensitive tests Otherwise, the file is reported as a data file Position-sensitive tests are normally implemented by matching various locations within the file against a textual database of magic numbers (see the Usage section). This differs from other simpler methods such as file extensions and schemes like MIME. In the System V implementation, the Ian Darwin implementation, and the OpenBSD implementation, the command uses a database to drive the probing of the lead bytes. That database is stored as a file that is located in /etc/magic, /usr/share/file/magic or similar.
A video file format is a type of file format for storing digital video data on a computer system. Video is almost always stored using lossy compression to reduce the file size. A video file normally consists of a container (e.g. in the Matroska format) containing visual (video without audio) data in a video coding format (e.g. VP9) alongside audio data in an audio coding format (e.g. Opus). The container can also contain synchronization information, subtitles, and metadata such as title. A standardized (or in some cases de facto standard) video file type such as .webm is a profile specified by a restriction on which container format and which video and audio compression formats are allowed. The coded video and audio inside a video file container (i.e. not headers, footers, and metadata) is called the essence. A program (or hardware) which can decode compressed video or audio is called a codec; playing or encoding a video file will sometimes require the user to install a codec library corresponding to the type of video and audio coding used in the file. Good design normally dictates that a file extension enables the user to derive which program will open the file. That is the case with some video file formats, such as WebM (.webm), Windows Media Video (.wmv), Flash Video (.flv), and Ogg Video (.ogv), each of which can only contain a few well-defined subtypes of video and audio coding formats, making it relatively easy to know which codec will play the file. In contrast to that, some very general-purpose container types like AVI (.avi) and QuickTime (.mov) can contain video and audio in almost any format, and have file extensions named after the container type, making it very hard for the end user to use the file extension to derive which codec or program to use to play the files. The free software FFmpeg project's libraries have very wide support for encoding and decoding video file formats. For example, Google uses ffmpeg to support a wide range of upload video formats for YouTube. One widely used media player using the ffmpeg libraries is the free software VLC media player, which can play most video files that end users will encounter.
Before the 1921 destruction of Tulsa’s Greenwood District, Black residents had created a remarkable center of business and community life. The district included stores, professional offices, entertainment venues and homes owned by Black citizens. Understanding Greenwood means learning what was built—not only what was burned.
MORE →Joe Louis.