How can I Delete a directory in Linus using rmdir?
How I Delete a directory in Linus using rmdir.

There are different ways of erasing indexes in a Linux working framework. On the off chance that you are shaking a work area record chief like Gnome’s Files or KDE’s Dolphin, you can erase documents and registries through the document supervisor’s UI easily. Nonetheless, you can erase registries (otherwise called envelopes) from the order line.
You can recuperate the erased registry utilizing the work area record administrator, however eliminating the index it is extremely durable to utilize the orders. In this way, be cautious while executing these orders as you might wind up forever erasing different registries containing fundamental documents.

Delete an index utilizing rmdir
rmdir order permits you to just erase determined void catalogs/envelopes in Linux. It is convenient as you don’t need to check regardless of whether the predefined registry is vacant.
To eliminate a catalog utilizing rmdir, type rmdir and the name of the registry you wish to erase.
In the event that the registry isn’t unfilled, you will be shown mistake articulation:
rmdir : neglected to eliminate ‘photographs’ : No such document or registry
In such circumstances, it is desirable over-utilize the rm order line or eliminates every one of the documents inside the registry prior to attempting once more.

Directory
An index is an area for putting away documents on a PC. It’s a document framework recording structure that contains references to different records or catalogs. Envelopes and documents are coordinated into various leveled structures, meaning coordinated in a way that looks like a tree. For instance, a registry contained inside another index is known as a subdirectory. The terms parent and kid are frequently used to allude to indexes and subdirectories, separately. The top-most catalog in a record framework is known as the root registry. Consider an index file organizer that contains envelopes. Inside these organizers’ documents.
Document frameworks use indexes to arrange records inside a capacity gadget, for example, a hard circle drive or strong state drive. Framework documents might be situated in one registry, while client records might be put away in another. Various leveled document frameworks that incorporate catalogs are Linux, MS-DOS, OS/2, and Unix. It’s important that in a GUI, for example, Microsoft Windows, registries are known as organizers.

By putting away unambiguous kinds of records in an organizer, data can be handily gotten to. Projects can be put away in a registry also. At the point when a program is introduced, its documents are put away in a catalog that contains subdirectories with many records connected with the program. As a result of the catalog, records are more averse to getting overwritten, adjusted, or erased by different projects.