q2K BHP
Black History Portal
THE BHP WIRE —
HIDDEN TRUTHS
What's New!
THE JOURNEY THROUGH TIME

Explore Black History

Explore the people, places, events, achievements, struggles and stories that shaped our journey.

✊🏾

Civil Rights

Movements, leaders, victories and the continuing fight for equality.

⚙️

Black Inventors

Innovation, patents, science, technology and world-changing contributions.

🏆

Sports

Pioneers, champions, Negro Leagues, records, activism and excellence.

♟️

People

Meet the people whose lives, choices and achievements shaped the journey.

📍

Places

Black towns, communities, institutions and places where history happened.

📜

Events

Moments that changed communities, movements, institutions and the nation.

Enter a person, place, event, or topic.
MY'STORY

The MOVE Fire

This is a personal recollection on the Move fire on May 13, 1985 Philadelphia police fired thousands of rounds at the MOVE house, city officials approved dropping an explosive device on the roof, the resulting fire was allowed to burn, 11 people—including five children—died, and 61 homes were destroyed. Philadelphia City Council later called it a “brutal attack carried out by the City of Philadelphia on its own citizens” and acknowledged that no individual faced criminal consequences for the bombing. One timeline correction worth preserving for the BHP record: the major previous MOVE-police confrontation was August 8, 1978, about seven years before the bombing, not a year or two earlier. Officer James Ramp was killed, other police and firefighters were wounded, nine MOVE members were later convicted, and television cameras recorded police beating Delbert Africa during his arrest. The 1985 MOVE Commission later specifically criticized city planners for failing to adequately use lessons from that 1978 confrontation. And that actually strengthens the point you’re making: 1985 did not happen without precedent or institutional memory. There had already been a deadly confrontation with MOVE, years of conflict, negotiations and police involvement before Osage Avenue.

MORE →
BLACK FACTS
The Truths They Never Taught You...

Wilmington 1898 — An American Coup

Wilmington, North Carolina once had a thriving Black middle class and an elected interracial government. In 1898 white supremacists used violence to overthrow that government, kill Black residents and drive many others from the city.

MORE →
BHP gathered finds from its connected research sources. Showing the 4 strongest Black History matches.
← BACK TO RESULTS
Wikipedia

tee (command)

tee
DevelopersAT&T Bell Laboratories, Mike Parker, Richard Stallman, David MacKenzie, Microware, Jim Hall, JP Software, Microsoft
ReleaseJune 1974; 52 years ago (1974-06)
Written inC
Operating systemUnix, Unix-like, Plan 9, Inferno, OS-9, MS-DOS, Windows, ReactOS, IBM i
PlatformCross-platform
TypeCommand
LicenseFreeDOS: GPL-2.0-or-later
ReactOS: GPLv2
Plan 9: MIT License

tee is a shell command that copies data from standard input to one or more files in addition to standard output, duplicating the input to each output.[1] The name derives from the tee pipe fitting even though the tee command duplicates the input into each output instead of dividing the input into portions for each output.[2] The command is often used with pipes and filters. Similar behaving commands are provided by many shells although syntax varies.

The command is provided in Unix and Unix-like systems, OS-9,[3] MS-DOS / PC DOS and compatibles, Windows (e.g. 4NT, PowerShell, UnxUtils[4]), ReactOS[5] and IBM i.[6]

The Linux version was written by Mike Parker, Richard Stallman, and David MacKenzie.[7]

The FreeDOS version was developed by Jim Hall and is licensed under the GPL.[8]

Additionally the sponge[9] command offers similar capabilities.

Unix

[edit]

The typical syntax on a Unix-based system can be described as:

tee [-a] [-i] [file...]
  • file... One or more names for files to receive the command input data
  • -a Append to a file rather than overwriting
  • -i Ignore interrupts

Process substitution lets more than one process read the standard output of the originating process.[10]

If a write to any file is not successful, writes to other files and standard output continue, but the exit status will indicate failure with a value greater than 0.

Examples

[edit]

The following both displays the output of the lint program.c command and saves the output to a file named program.lint; overwriting it if it already existed.

lint program.c | tee program.lint

The following does the same as the previous example, except for appending the output to an existing file instead of overwriting it. The file is created if it was not pre-existing.

lint program.c | tee -a program.lint

The following bypasses a limitation of the sudo command which is unable to pipe standard output to a file. By dumping its stdout stream into /dev/null, output to the console suppressed. This gives the current user root access to a server over ssh, by installing the user's public key to the server's key authorization list.

cat ~/.ssh/id_rsa.pub | ssh admin@server "sudo tee -a /root/.ssh/authorized_keys2 > /dev/null"

In Bash, the output can be filtered before being written to the file—without affecting the output displayed—by using process substitution. The following removes common ANSI escape codes before writing to ls.txt, but retains them for display.[11]

ls --color=always | tee >(sed "s/\x1b[^m]*m//g" > ls.txt)

4DOS and 4NT

[edit]

The syntax on 4DOS and 4NT can be described as:

TEE [/A] file...
  • file One or more names for files to receive the command input data
  • /A Append to a file rather than overwriting

When used with a pipe, the output of the previous command is written to a temporary file. When that command finishes, tee processes the temporary file, copying it to the file argument(s) and standard output.

Examples

[edit]

This example searches the file wikipedia.txt for any lines containing the string "4DOS", makes a copy of the matching lines in 4DOS.txt, sorts the lines, and writes them to the output file 4DOSsorted.txt:

>find "4DOS" wikipedia.txt | tee 4DOS.txt | sort > 4DOSsorted.txt

PowerShell

[edit]

Powershell is not suitable for binary and raw data, always treats the stream as text, and modifies the data as it is transferred.

The syntax on PowerShell can be described as:

 tee [-FilePath] <String> [-InputObject <PSObject>]
 tee -Variable <String> [-InputObject <PSObject>]
  • -InputObject <PSObject> Specifies the object input to the cmdlet. The parameter accepts variables that contain the objects and commands or expression that return the objects.
  • -FilePath <String> Specifies the file where the cmdlet stores the object. The parameter accepts wildcard characters that resolve to a single file.
  • -Variable <String> A reference to the input objects will be assigned to the specified variable.

The command is implemented as a ReadOnly command alias that invokes the cmdlet named Microsoft.PowerShell.Utility\Tee-Object.

Examples

[edit]

The following displays the standard output of command ipconfig in the console window, and simultaneously saves a copy of it in the file OutputFile.txt.

ipconfig | tee OutputFile.txt

The following shows that the piped input for tee can be filtered and that tee is used to display that output, which is filtered again so that only processes owning more than 1000 handles are displayed, and writes the unfiltered output to the file ABC.txt. To display and save all running processes, filtered so that only programs starting with svc and owning more than 1000 handles are output:

Get-Process | Where-Object { $_.Name -like "svc*" } | Tee-Object ABC.txt | Where-Object { $_.Handles -gt 1000 }

See also

[edit]

References

[edit]
  1. ^ "Man Page for tee (posix Section 1)". IEEE Std 1003.1, 2003 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6. Retrieved 1 December 2013.
  2. ^ "In Unix, what do some obscurely named commands stand for?". Archived from the original on 27 November 2005. Retrieved 3 February 2012.
  3. ^ Paul S. Dayan (1992). The OS-9 Guru - 1 : The Facts. Galactic Industrial Limited. ISBN 0-9519228-0-7.
  4. ^ "Native Win32 ports of some GNU utilities". unxutils.sourceforge.net. Archived from the original on 9 February 2006. Retrieved 11 August 2025.
  5. ^ "reactos/reactos". GitHub. 3 January 2022. Archived from the original on 11 December 2017. Retrieved 29 July 2019.
  6. ^ IBM. "IBM System i Version 7.2 Programming Qshell" (PDF). IBM. Archived (PDF) from the original on 18 September 2020. Retrieved 5 September 2020.
  7. ^ "tee: read from standard input and write to standard output and files". www.mankier.com.
  8. ^ "ibiblio.org FreeDOS Package -- tee (Unix-like)". www.ibiblio.org. Archived from the original on 7 July 2018. Retrieved 13 November 2018.
  9. ^ "sponge(1): soak up stdin/write to file - Linux man page". linux.die.net.
  10. ^ GNU Coreutils, tee invocation
  11. ^ "GNU Coreutils: tee invocation". Archived from the original on 20 January 2016. Retrieved 3 February 2016.

Further reading

[edit]
[edit]

Source: Wikipedia. Article content is retrieved live through the MediaWiki API.

No preview image
Wikipedia

Tee (command)

tee is a shell command that copies data from standard input to one or more files in addition to standard output, duplicating the input to each output. The name derives from the tee pipe fitting even though the tee command duplicates the input into each output instead of dividing the input into portions for each output. The command is often used with pipes and filters. Similar behaving commands are provided by many shells although syntax varies. The command is provided in Unix and Unix-like systems, OS-9, MS-DOS / PC DOS and compatibles, Windows (e.g. 4NT, PowerShell, UnxUtils), ReactOS and IBM i. The Linux version was written by Mike Parker, Richard Stallman, and David MacKenzie. The FreeDOS version was developed by Jim Hall and is licensed under the GPL. Additionally the sponge command offers similar capabilities.

MORE →
No preview image
Wikipedia

Special Operations Command (Singapore)

The Special Operations Command (SOC) is a specialist tactical unit of the Singapore Police Force (SPF) specialising in riot control and high-threat incidents. It was formed on 10 September 1992 to unify specialist units into a single strategic reserve force that the regular officers need to call upon in any contingency plan and serious case of public disorder. The current commander of the SOC is Senior Assistant Commissioner of Police (SAC) Arthur Law Kok Leong and the deputy commander is Assistant Commissioner of Police (AC) Koh Tee Meng.

MORE →
No preview image
Wikipedia

List of trackball arcade games

This is a list of arcade games that have used a trackball to interact with the game. World Cup (Sega, March 1978) Atari Football (Atari, October 1978) Shuffleboard (Midway Manufacturing, October 1978) Atari Soccer (1979) Atari Baseball (1979) BullsEye (1980) Centipede (1980) Extra Bases (1980) Missile Command (1980) Kick (a.k.a. Kick Man) (1981) Laser Base (1981) Beezer (1982) Millipede (1982) Liberator (1982) Quantum (1982) Reactor (1982) Slither (1982) Birdie King (1982) Birdie King 2 (1983) Cloud 9 (1983) Crystal Castles (1983) Track and Field (1983; later versions used buttons) Wacko (1983) Birdie King 3 (1984) Cube Quest (1984) Goalie Ghost (1984) Bouncer (1984) Marble Madness (1984) Snake Pit (1984) Gimme A Break (1985) Tehkan Gridiron Fight (1985) Tehkan World Cup (1985) Mini Golf (1985) Big Event Golf (1986) Blades of Steel (1987) Combat School / Boot Camp (1987) Cabal (1988; trackball used only in early editions) Capcom Bowling (1988) Syvalion (1988) Ameri Darts (1989) Coors Light Bowling (1989) U.S. Classic (1989) Tri-Sports (1989) American Horseshoes (1990) Shuuz (1990) Strata Bowling (1990) Ataxx (1990) Rampart (1990) Golden Tee Golf (1990) Bowl-O-Rama (1991) Golden Tee Golf II (1992) SegaSonic The Hedgehog (1993) Golden Tee 3D Golf (1995) Shuffleshot (1997) World Class Bowling (1997) Outtrigger (video game) (1999) The Simpsons Bowling (2000) Beach head 2000 (2000) Golden Tee Fore! (2000) The Grid (2001) HyperBowl (Hyper Entertainment, 1999; uses a bowling ball sized trackball) Silver Strike Bowling (2004) Rockin' Bowl-O-Rama (2005) Golden Tee LIVE! (2005) Virtua Bowling (IGS) Target Toss Pro: Bags (2007) The Irritating Maze (1997) Super Monkey Ball - Ticket Blitz (2009) Marine Date (1981) Temple Run 2 (2014)

MORE →
No preview image
Wikipedia

Ucspi-tcp

ucspi-tcp is a public domain Unix TCP command-line tool for building TCP client-server applications. It consists of super-server tcpserver and tcpclient application. From "Life with qmail", Dave Sill, 2 January 2006 (Appendix B.3.): ucspi-tcp is an acronym for UNIX Client-Server Program Interface for TCP, and it is pronounced ooks-pie tee see pee. tcpserver features built-in TCP Wrapper-like access control.

MORE →
TOPIC OF THE DAY

Greenwood / Black Wall Street

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 →
TRIVIA QUESTION OF THE DAY

Who became the first Black woman to travel into space?

Mae Jemison, aboard Space Shuttle Endeavour in 1992.