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

Katherine Johnson — Mathematics to the Moon

Katherine Johnson’s mathematical calculations helped guide some of America’s most important early space missions while she confronted the racial and gender barriers faced by Black women in twentieth-century America.

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

rmdir

rmdir / rd
Original authorsKen Thompson, Dennis Ritchie
(AT&T Bell Laboratories)
DevelopersVarious open-source and commercial developers
Operating systemUnix, Unix-like, DOS, MSX-DOS, FlexOS, OS/2, Windows, ReactOS, KolibriOS
PlatformCross-platform
TypeCommand

In computing, rmdir (or rd) is a command which will remove an empty directory on various operating systems.

Implementations

[edit]

The command is available in Unix (e.g. macOS, Solaris, AIX, HP-UX), Unix-like (e.g. FreeBSD, Linux), DOS, Digital Research FlexOS,[1] IBM OS/2,[2] Microsoft Windows[3] or ReactOS[4] operating systems. On MS-DOS, the command is available in versions 2 and later.[5] DR DOS 6.0 also includes an implementation of the rmdir command.[6]

It is also available in the open source MS-DOS emulator DOSBox and in KolibriOS.[7] The numerical computing environments MATLAB and GNU Octave include an rmdir function with similar functionality.[8][9]

Usage

[edit]

Unix, Unix-like

[edit]

Normal usage is straightforward:

$ rmdir name_of_directory

where name_of_directory corresponds with the name of the directory one wishes to delete. There are options to this command such as -p in Unix which removes parent directories if they are also empty.

For example:

$ rmdir -p foo/bar/baz

will first remove baz/, then bar/ and finally foo/ thus removing the entire directory tree specified in the command argument.

rmdir will not remove a directory if it is not empty in UNIX. The rm command will remove a directory and all its contents recursively. For example:

$ rm -r foo/bar/baz
$ rm -rf foo/bar/baz

DOS, OS/2, Windows, ReactOS

[edit]
The ReactOS rmdir command

Normal usage is identical to Unix-like operating systems:

>rmdir name_of_directory

The equivalent command in MS-DOS and earlier (non-NT-based) versions of Microsoft Windows for deleting non-empty directories is deltree.

In later version of Windows:

>rd /s directory_name

Windows based on the NT kernel (XP, Vista, 7, 8, Server 2003/2008) are case insensitive, just like their earlier predecessors, unless two files of the same name and different case exist. Then case sensitivity applies when selecting which file to use, or if the case does not match either file, one may be chosen by Windows.

Having two files named the same with different case sensitivity is allowed either when Windows Services for Unix is installed or when the Windows Registry settings are set to allow it.

An example of the security risk is:

Using rd/rmdir and two directories with the same name and different case sensitivities exist, one of which contains valid data and/or programs, and the other contains incriminating materials and/or malware. If rd/rmdir gets executed without regard to case sensitivity and Windows chooses the legitimate folder to delete, the only folder left is the undesired one. Windows then uses this folder instead of the previously legitimate one to execute programs, and one may be led to believe it contains legitimate data.

See also

[edit]

References

[edit]
  1. ↑ "Manual" (PDF). www.bitsavers.org. 1986. Archived from the original (PDF) on 2010-08-08. Retrieved 2020-09-12.
  2. ↑ "Help page". www.jatomes.com. Archived from the original on 2019-04-14. Retrieved 2020-09-12.
  3. ↑ "Microsoft TechNet Rmdir article". 31 August 2016. Archived from the original on 26 August 2017. Retrieved 26 August 2017.
  4. ↑ "reactos/reactos". GitHub. 3 January 2022. Archived from the original on 11 December 2017. Retrieved 28 July 2019.
  5. ↑ Wolverton, Van (2003). Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. Microsoft Press. ISBN 0-7356-1812-7.
  6. ↑ "DR DOS 6.0 User Guide Optimisation and Configuration Tips" (PDF). Archived from the original on 2019-09-30. Retrieved 2019-08-13.
  7. ↑ "Shell - KolibriOS wiki". wiki.kolibrios.org. Archived from the original on 2019-02-11. Retrieved 2019-08-11.
  8. ↑ "Remove folder - MATLAB rmdir". www.mathworks.com.
  9. ↑ "Function Reference: rmdir". octave.sourceforge.io. Archived from the original on 2019-04-06. Retrieved 2019-04-06.

Further reading

[edit]
[edit]

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

No preview image
Wikipedia

Rmdir

In computing, rmdir (or rd) is a command which will remove an empty directory on various operating systems.

MORE →
No preview image
Wikipedia

Unlink (Unix)

In Unix-like operating systems, unlink is a system call and a command line utility to delete files. The program directly interfaces the system call, which removes the file name and (but not on GNU systems) directories like rm and rmdir. If the file name was the last hard link to the file, the file itself is deleted as soon as no program has it open. Unlike the rm utility, the unlink utility only accepts one argument, which can be desirable to guard against accidental multi-deletions. It also appears in the PHP, Node.js, R, Perl and Python standard libraries in the form of the unlink() built-in function. Like the Unix utility, it is also used to delete files.

MORE →
No preview image
Wikipedia

Stand-alone shell

Stand-alone shell (sash) is a Unix shell designed for use in recovering from certain types of system failures and errors. The built-in commands of sash have all libraries linked statically, so unlike most shells on Linux, the standard UNIX commands do not rely on external libraries. For example, the copy command (cp) requires libc.so and ld-linux.so when built from GNU Core Utilities on Linux. If any of these libraries get corrupted, the coreutils cp command would not work; however, in sash, the built-in command, cp, would be unaffected. In earlier times, most critical commands (including shells) in /sbin or even /bin were statically linked for this purpose, whereas in /usr/sbin and /usr/bin you would find the more feature-rich versions that were dynamically linked. This is not common anymore and as such, statically linked shells with built-in commands have become more important. Sash has the following built-in commands: ar, chattr, chgrp, chmod, chown, cmp, cp, dd, echo, ed, exec, grep, file, find, gunzip, gzip, kill, losetup, ln, ls, lsattr, mkdir, mknod, rmdir, sum, sync, tar, touch, umount, where The Sash shell has also been ported to work with Android in a terminal-interface.

MORE →
Wikipedia

Apache Ant

Apache Ant is a software tool for automating software build processes for Java applications which originated from the Apache Tomcat project in early 2000 as a replacement for the Make build tool of Unix. It is similar to Make, but is implemented using the Java language and requires the Java platform. Unlike Make, which uses the Makefile format, Ant uses XML to describe the code build process and its dependencies. Released under an Apache License by the Apache Software Foundation, Ant is an open-source project.

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

What prosperous Tulsa district became widely known as “Black Wall Street”?

The Greenwood District.