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...

Ruler of the Mali Empire in the 14th century

Mansa Musa was the ruler of the Mali Empire in West Africa. Details recorded here should be sourced; unknown information is left blank.

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

Command (computing)

In computing, a command is a high-level instruction received via an external interface that directs the behavior of a computer program. Commonly, commands are sent to a program via a command-line interface, a script, a network protocol, or as an event triggered in a graphical user interface.[1]

Many commands support arguments to specify input and to modify default behavior. Terminology and syntax varies but there are notable common approaches. Typically, an option or a flag is a name (without whitespace) with a prefix such as dash or a slash that modifies default behavior. An option might have a required value that follows it. Typically, a flag refers to an option that does not have a following value. A parameter is an argument that specifies input to the command and its meaning is based on its position in the command line relative to other parameters; generally ignoring options. A parameter can specify anything, but often it specifies a file by name or path.[2]

The term command is sometimes also used for internal program instructions, but often other terms are more appropriate such as statement, expression, function, or conditional.[3][4] For example, printing a message in Bash is via the command printf, while in Python it is via the function print().[5] Further, some aspects of adjacent technology are conflated with commands. For example, conditional logic in Bash and Python is called an expression[6][7] and statements in Java.[8][9]

Examples

[edit]

A notable context in which commands are prevalent is the operating system shell. Commonly, the shell dispatches a command to a program that has a file name matching the first parameter. In a Unix shell (such as bash and many related variants), the match must be exact including case.[10] The following bash command changes the working directory to /home/pete by invoking the program cd:

cd /home/pete

The following bash command writes "Hello World" via program echo to standard output – typically the terminal. Quotes around the two words indicate that the phrase is treated as a single parameter.

echo "Hello World"

The following demonstrates how the default behavior of a command is modified with a switch. The switch -e causes the command to treat characters prefixed with a backslash as the associated control character. In this case \t results in a tab character.

echo -e "Hello\tWorld"

In shells such as command prompt, DOS, and OS/2 some commands are built-in: not implemented as a separate program.[11] But, if a command is not built-in, then the shell dispatches to a program that has an executable extension (such as .exe) and base name matching the first parameter ignoring case. The following command prompt command displays the content of file readme.txt via the built-in command type.[12]

type readme.txt

The following command prompt command lists the contents of the current directory via built-in command dir. The switch /Q modifies default behavior to include owner information.[13]

dir /Q

See also

[edit]

References

[edit]
  1. ^ Kernighan, Brian W.; Pike, Rob (1984). The UNIX Programming Environment. Prentice Hall. ISBN 978-0-13-937681-8.
  2. ^ Sobell, Mark G. (2014). A Practical Guide to Linux Commands, Editors, and Shell Programming (3rd ed.). Prentice Hall. ISBN 978-0-13-308504-4.
  3. ^ Maurizio Gabbrielli, Simone Martini (2010). Programming Languages - Principles and Paradigms. Springer London, 6.3.2 Conditional Commands, p. 140
  4. ^ Lutz, Mark (2013). Learning Python (5th ed.). O’Reilly Media. ISBN 978-1-449-35573-9.
  5. ^ "Built-in Functions - print". python.org. Retrieved 23 October 2023.
  6. ^ "Conditional expressions". python.org. Retrieved 23 October 2023.
  7. ^ "Bash Conditional expressions". gnu.org. Retrieved 23 October 2023.
  8. ^ "The if-then and if-then-else Statements". oracle.com. Retrieved 23 October 2023.
  9. ^ Horstmann, Cay S.; Cornell, Gary (2018). Core Java: Volume I – Fundamentals (11th ed.). Prentice Hall. ISBN 978-0-13-516630-7.
  10. ^ "Bash Reference Manual". Free Software Foundation. 2023.
  11. ^ "Windows Command Line Reference". Microsoft. 2023.
  12. ^ "Type - Display a text file - Windows CMD". SS64.com. Retrieved 14 March 2019.
  13. ^ "DIR - list files and folders - Windows CMD". SS64.com. Retrieved 14 March 2019.
[edit]

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

No preview image
Wikipedia

Command (computing)

In computing, a command is a high-level instruction received via an external interface that directs the behavior of a computer program. Commonly, commands are sent to a program via a command-line interface, a script, a network protocol, or as an event triggered in a graphical user interface. Many commands support arguments to specify input and to modify default behavior. Terminology and syntax varies but there are notable common approaches. Typically, an option or a flag is a name (without whitespace) with a prefix such as dash or a slash that modifies default behavior. An option might have a required value that follows it. Typically, a flag refers to an option that does not have a following value. A parameter is an argument that specifies input to the command and its meaning is based on its position in the command line relative to other parameters; generally ignoring options. A parameter can specify anything, but often it specifies a file by name or path. The term command is sometimes also used for internal program instructions, but often other terms are more appropriate such as statement, expression, function, or conditional. For example, printing a message in Bash is via the command printf, while in Python it is via the function print(). Further, some aspects of adjacent technology are conflated with commands. For example, conditional logic in Bash and Python is called an expression and statements in Java.

MORE →
Wikipedia

TYPE (DOS command)

In computing, type is a command in various command-line interpreters (shells) such as COMMAND.COM, cmd.exe, 4DOS/4NT and Windows PowerShell used to display the contents of specified files on the computer terminal. The analogous Unix command is cat.

MORE →
Wikipedia

Del (command)

In computing, del (or erase) is a command in command-line interpreters (shells) such as COMMAND.COM, cmd.exe, 4DOS, NDOS, 4OS2, 4NT and Windows PowerShell. It is used to delete one or more files or directories from a file system.

MORE →
Wikipedia

Ver (command)

In computing, ver (short for version) is a command in various command-line interpreters (shells) such as COMMAND.COM, cmd.exe and 4DOS/4NT. It prints the name and version of the operating system, the command shell, or in some implementations the version of other commands. It is roughly equivalent to the Unix command uname.

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 was the first African-American woman millionaire in the United States?

Madam C.J. Walker