Share to: share facebook share twitter share wa share telegram print page
Available for Advertising

Shell (computing)

A graphical interface similar to one from the late 1980s, which features a TUI window for a man page, a shaped window (oclock) as well as several iconified windows. In the lower right we can see a terminal emulator running a Unix shell, in which the user can type commands as if they were sitting at a terminal.

In computing, a shell is a computer program that exposes an operating system's services to a human user or other programs. In general, operating system shells use either a command-line interface (CLI) or graphical user interface (GUI), depending on a computer's role and particular operation. It is named a shell because it is the outermost layer around the operating system.[1][2]

Overview

Operating systems provide various services to their users, including file management, process management (running and terminating applications), batch processing, and operating system monitoring and configuration.

Most operating system shells are not direct interfaces to the underlying kernel, even if a shell communicates with the user via peripheral devices attached to the computer directly. Shells are actually special applications that use the kernel API in just the same way as it is used by other application programs. A shell manages the user–system interaction by prompting users for input, interpreting their input, and then handling output from the underlying operating system (much like a read–eval–print loop, REPL).[3] Since the operating system shell is actually an application, it may easily be replaced with another similar application, for most operating systems.

In addition to shells running on local systems, there are different ways to make remote systems available to local users; such approaches are usually referred to as remote access or remote administration. Initially available on multi-user mainframes, which provided text-based UIs for each active user simultaneously by means of a text terminal connected to the mainframe via serial line or modem, remote access has extended to Unix-like systems and Microsoft Windows. On Unix-like systems, Secure Shell protocol (SSH) is usually used for text-based shells, while SSH tunneling can be used for X Window System–based graphical user interfaces (GUIs). On Microsoft Windows, Remote Desktop Protocol can be used to provide GUI remote access, and since Windows Vista, PowerShell Remote can be used for text-based remote access via WMI, RPC, and WS-Management.[4]

Most operating system shells fall into one of two categories – command-line and graphical. Command-line shells provide a command-line interface (CLI) to the operating system, while graphical shells provide a graphical user interface (GUI). Other possibilities, although not so common, include a voice user interface and various implementations of a text-based user interface (TUI) that are not CLI, such as text-based menu systems. The relative merits of CLI- and GUI-based shells are often debated. Many computer users use both depending on the task to be performed.

History

Early interactive systems provided a simple command-line interpreter as part of the resident monitor. This interpreter might be called by different names, such as COMCON on DEC TOPS-10 systems.[5] The interpreter would execute one of a number of predefined commands, one of which would be to run a user program. Common commands would log the user on and off the system, allocate, free, and manipulate devices and files, and query various pieces of information about the system or a user process.[6]

The purpose of such a procedure is to create a medium of exchange into which one could activate any procedure, as if it were called from the inside of another program. Hereafter, for simplification, we shall refer to that procedure as the "SHELL".

Louis Pouzin, The SHELL: A Global Tool for Calling and Chaining Procedures in the System [7]

In 1964, for the Multics operating system, Louis Pouzin conceived the idea of "using commands somehow like a programming language," and coined the term shell to describe it.[8] In a 1965 document, the shell is defined as "a common procedure called automatically by the supervisor whenever a user types in some message at his console, at a time when he has no other process in active execution under console control. This procedure acts as an interface between console messages and subroutine [in the supervisor]."[9] This system was first implemented by Glenda Schroeder and an unnamed man from General Electric.[10]

Multics also introduced the active function, a key concept in all later shells. This is defined as

a string... which is replaced by a character string return value before the command line containing it is executed. Active functions are often used... to implement command-language macros.[11]

In 1971, Ken Thompson developed the Thompson shell in the first version of Unix. While simpler than the Multics shell, it contained some innovative features, which have been carried forward in modern shells, including the use of < and > for input and output redirection.

The graphical shell first appeared in Douglas Engelbart’s NLS system, demonstrated in December, 1968 at the Fall Joint Computer Conference in San Francisco, in what has been called The Mother of All Demos. Engelbart’s colleagues at Stanford Research Institute brought the concept to the Xerox Palo Alto Research Center (PARC), where it appeared on the Alto, introduced in 1973. From there the idea spread to Niklaus Wirth’s Lilith in 1980, and the Apple Lisa in 1983, then became ubiquitous.

Command-line shells

Command Prompt, a CLI shell in Windows
Bash, a widely adopted Unix shell

A command-line interface (CLI) is an operating system shell that uses alphanumeric characters typed on a keyboard to provide instructions and data to the operating system, interactively. For example, a teletypewriter can send codes representing keystrokes to a command interpreter program running on the computer; the command interpreter parses the sequence of keystrokes and responds with an error message if it cannot recognize the sequence of characters, or it may carry out some other program action such as loading an application program, listing files, logging in a user and many others. Operating systems such as UNIX have a large variety of shell programs with different commands, syntax and capabilities, with the POSIX shell being a baseline. Some operating systems had only a single style of command interface; commodity operating systems such as MS-DOS came with a standard command interface (COMMAND.COM) but third-party interfaces were also often available, providing additional features or functions such as menuing or remote program execution.

Application programs may also implement a command-line interface. For example, in Unix-like systems, the telnet program has a number of commands for controlling a link to a remote computer system. Since the commands to the program are made of the same keystrokes as the data being sent to a remote computer, some means of distinguishing the two are required. An escape sequence can be defined, using either a special local keystroke that is never passed on but always interpreted by the local system. The program becomes modal, switching between interpreting commands from the keyboard or passing keystrokes on as data to be processed.

A feature of many command-line shells is the ability to save sequences of commands for re-use. A data file can contain sequences of commands which the CLI can be made to follow as if typed in by a user. Special features in the CLI may apply when it is carrying out these stored instructions. Such batch files (script files) can be used repeatedly to automate routine operations such as initializing a set of programs when a system is restarted. Batch mode use of shells usually involves structures, conditionals, variables, and other elements of programming languages; some have the bare essentials needed for such a purpose, others are very sophisticated programming languages in and of themselves. Conversely, some programming languages can be used interactively from an operating system shell or in a purpose-built program.

Several command-line shells, such as Xonsh, Bash (Unix shell), and Z shell, offer command-line completion, enabling the interpreter to expand commands based on a few characters input by the user.[12]

A command-line interpreter may offer a history function, so that the user can recall earlier commands issued to the system and repeat them, possibly with some editing. Since all commands to the operating system had to be typed by the user, short command names and compact systems for representing program options were common. Short names were sometimes hard for a user to recall, and early systems lacked the storage resources to provide a detailed on-line user instruction guide.

Graphical shells

A graphical user interface (GUI) provides means for manipulating programs graphically, by allowing for operations such as opening, closing, moving and resizing windows, as well as switching focus between windows. Graphical shells may be included with desktop environments or come separately, even as a set of loosely coupled utilities.

Most graphical user interfaces develop the metaphor of an "electronic desktop", where data files are represented as if they were paper documents on a desk, and application programs similarly have graphical representations instead of being invoked by command names.

Unix-like systems

Drag and drop operation performed on a group of files between KDesktop and Konqueror in KDE

Graphical shells typically build on top of a windowing system. In the case of X Window System or Wayland, the shell consists of an X window manager or a Wayland compositor, respectively, as well as of one or multiple programs providing the functionality to start installed applications, to manage open windows and virtual desktops, and often to support a widget engine.

In the case of macOS, Quartz Compositor acts as the windowing system, and the shell consists of the Finder,[13] the Dock,[13] SystemUIServer,[13] and Mission Control.[14]

Microsoft Windows

Modern versions of the Microsoft Windows operating system use the Windows shell as their shell. Windows Shell provides desktop environment, start menu, and task bar, as well as a graphical user interface for accessing the file management functions of the operating system. Older versions also include Program Manager, which was the shell for the 3.x series of Microsoft Windows, and which in fact shipped with later versions of Windows of both the 95 and NT types at least through Windows XP. The interfaces of Windows versions 1 and 2 were markedly different.

Desktop applications are also considered shells, as long as they use a third-party engine. Likewise, many individuals and developers dissatisfied with the interface of Windows Explorer have developed software that either alters the functioning and appearance of the shell or replaces it entirely. WindowBlinds by StarDock is a good example of the former sort of application. LiteStep and Emerge Desktop are good examples of the latter.

Interoperability programmes and purpose-designed software lets Windows users use equivalents of many of the various Unix-based GUIs discussed below, as well as Macintosh. An equivalent of the OS/2 Presentation Manager for version 3.0 can run some OS/2 programmes under some conditions using the OS/2 environmental subsystem in versions of Windows NT.

Other uses

"Shell" is also used loosely to describe application software that is "built around" a particular component, such as web browsers and email clients, in analogy to the shells found in nature. Indeed, the (command-line) shell encapsulates the operating system kernel. These are also sometimes referred to as "wrappers".[2]

In expert systems, a shell is a piece of software that is an "empty" expert system without the knowledge base for any particular application.[15]

See also

References

  1. ^ "The Internet's fifth man", Brain scan, The Economist, London: Economist Group, December 13, 2013, Mr Pouzin created a program called RUNCOM that helped users automate tedious and repetitive commands. That program, which he described as a "shell" around the computer's whirring innards, gave inspiration—and a name—to an entire class of software tools, called command-line shells, that still lurk below the surface of modern operating systems.
  2. ^ a b Raymond, Eric S. (ed.). "shell". The Jargon File.
  3. ^ "Operating system shells". AIX 6.1 Information Center. IBM Corp. Retrieved September 16, 2012.
  4. ^ Wheeler, Sean (14 October 2018). "Running Remote Commands". Microsoft Docs. Microsoft. Retrieved 30 June 2019. You can run commands on one or hundreds of computers with a single PowerShell command. Windows PowerShell supports remote computing by using various technologies, including WMI, RPC, and WS-Management.
  5. ^ Digital Equipment Corporation (Nov 1980). TOPS-10 MONITOR INTERNALS (PDF). pp. CMND-1–CMND-16. Retrieved Mar 29, 2022.
  6. ^ Digital Equipment Corporation (Aug 1977). DECSystem 10 Operating System Commands Manual (PDF). Retrieved Mar 29, 2022.
  7. ^ Poizin, Louis. "The SHELL: A Global Tool for Calling and Chaining Procedures in the System" (PDF).
  8. ^ Pouzin, Louis. "The Origin of the Shell". multicians.org. Retrieved Mar 29, 2022.
  9. ^ Pouzin, Louis. "The SHELL: A Global Tool for Calling and Chaining Procedures in the System" (PDF). MIT.edi. Retrieved Mar 29, 2022.
  10. ^ Pouzin, Louis. "The Origin of the Shell". multicians.org. Retrieved Feb 12, 2024.
  11. ^ Honeywell, inc. (Feb 1983). Multics Common Commands (PDF). pp. 1-1–1-2. Retrieved Mar 29, 2022.
  12. ^ Xonsh Official Website
  13. ^ a b c "The Life Cycle of a Daemon". Apple Inc.
  14. ^ "Restart Mission Control in OS X Lion". OSXDaily. Nov 23, 2011.
  15. ^ British Computer Society: The BCS glossary of ICT and computing terms. Pearson Education. 2005. p. 135. ISBN 978-0-13-147957-9.

Read other articles:

Gerhard Brenner Geboren 29 augustus 1918Ludwigsbrug, Baden-Württemberg, Duitse Keizerrijk Overleden 29 juni 1942ten zuiden van Gavdos in de Egeïsche Zee Land/zijde Nazi-Duitsland Onderdeel Luftwaffe Dienstjaren 1937 - 1942 Rang Oberleutnant der Reserve Eenheid Lehrgeschwader 1 Slagen/oorlogen Tweede Wereldoorlog Onderscheidingen Zie decoraties Portaal    Tweede Wereldoorlog Gerhard Brenner (29 augustus 1918 – 29 juni 1942) was een Duitse Luftwaffepiloot tijdens de Tweede Wereldo...

Edith Craig Información personalNacimiento 9 de diciembre de 1869 Hertfordshire (Reino Unido) Fallecimiento 27 de marzo de 1947 (77 años)Kent (Reino Unido) Causa de muerte Trombosis Nacionalidad BritánicaFamiliaPadres Edward William Godwin Ellen Terry Cónyuge Christabel Marshall Pareja Christabel MarshallClare Atwood EducaciónEducada en Royal Academy of Music Alumna de Ellen Terry Información profesionalOcupación Actriz, productora de teatro, directora de teatro, sufragista, suffragett...

تسطح القاعدة معلومات عامة الاختصاص طب الروماتزم  من أنواع شذوذ قحفي وجهي  تعديل مصدري - تعديل   تَفَلْطُحُ القاعِدَة[1] أو تسطح القاعدة[2] (بالإنجليزية: Platybasia)‏، هو مرض حبلي شوكي يحدث بسبب تلف الرابطة بين العظم القذالي والفقرات العنقية. يسبّب مرض بادجيت هذه الح

«Амоніт»Ammonite Жанри романтика, драмаРежисер Френсіс ЛіПродюсери Іен Каннінґ[en] Фодла Кронін О'Рейлі Еміль Шерман[en] Сценаристи Френсіс ЛіУ головних ролях Кейт Вінслет Сірша Ронан Фіона Шоу Оператор Стефан ФонтенКомпозитор Гаушка Дастін О'Галлоран[en] Монтаж Кріс ВаяттКіно

For other uses, see Oh Se-hoon and Oh Se-hun (footballer). South Korean rapper (born 1994) In this Korean name, the family name is Oh. Oh Se-hunOh in July 2019Born (1994-04-12) April 12, 1994 (age 29)Seoul, South KoreaOccupationsRappersingersongwriteractordancermodelYears active2012–presentMusical careerGenresK-pophip-hopInstrument(s)VocalsLabelsSMMember ofExoExo-KExo-SCSM TownWebsiteOfficial website Musical artistKorean nameHangul오세훈Hanja吳世勳TranscriptionsRevised Roman...

Penn Center Suburban StationHistoireArchitecte Graham, Anderson, Probst & White, John Milner Associates, Inc.Construction 1929Usage BureauxArchitectureStyle Architecture Art déco (d)Hauteur Toit : 101 mÉtages 20Sous-sols 2LocalisationPays  États-UnisVille PhiladelphieCoordonnées 39° 57′ 15″ N, 75° 10′ 03″ Omodifier - modifier le code - modifier Wikidata Le Penn Center Suburban Station est gratte-ciel de 101 mètres de hauteur construit...

Dieser Artikel beschreibt den Marineoffizier. Zum Schriftsteller und Literaturhistoriker (1851–1940) siehe Otto Weddigen (Autor). Otto Weddigen Otto Eduard Weddigen (* 15. September 1882 in Herford; † 18. März 1915 auf See vor Schottland) war ein deutscher Kapitänleutnant sowie U-Boot-Kommandant im Ersten Weltkrieg. Inhaltsverzeichnis 1 Leben 2 Nachwirkung 3 Filmografie 4 Literatur 5 Weblinks 6 Einzelnachweise Leben Otto Weddigen wurde als elftes und jüngstes Kind eines Leinenfabrikant...

1961 song by the Regents For the episode of The Last Man on Earth, see Barbara Ann (The Last Man on Earth). For the Wonder Woman villain Barbara Ann Minerva, see Cheetah (character) § Barbara Ann Minerva. Barbara-AnnSingle by the Regentsfrom the album Barbara-Ann B-sideI'm So LonelyReleased1961 (1961)Recorded1958 (1958)GenreDoo-woppopLength2:15LabelGee 1065Songwriter(s)Fred FassertProducer(s)Louis CicchettiThe Regents singles chronology Barbara-Ann (1961) Runaround (1961) Barb...

College of the University of Cambridge St Catharine's CollegeUniversity of CambridgeMain Court, St Catharine's CollegeArms of St Catharine's CollegeArms: Gules, a Catharine wheel Or.Scarf colours: burgundy, with narrow pearl pink stripes LocationTrumpington Street (map)Full nameThe College or Hall of St Catharine the Virgin in the University of CambridgeLatin nameAula sancte Katerine virginis infra Universitatem CantabrigieAbbreviationCTH[1]FounderRobert WoodlarkEstablished1473;&#...

Mohammad IrfanLahir19 Oktober 1972 (umur 51)Bukittinggi, Sumatera BaratKebangsaanIndonesiaAlmamaterInstitut Seni Indonesia, YogyakartaPekerjaanPerupaSuami/istriMiming Amira Mohammad Irfan, atau biasa ditulis M. Irfan (lahir 19 Oktober 1972) adalah seorang perupa Indonesia. Ia dikenal sebagai pelukis beraliran realis. Irfan menikah dengan seorang perempuan bernama Miming Amira dan telah dikaruniai dua orang anak.[1] Sebelum menarik diri pada tahun 2000-an, M. Irfan pernah bergabun...

Type of cosmetics White petrolatum A moisturizer, or emollient,[1] is a cosmetic preparation used for protecting, moisturizing, and lubricating the skin. These functions are normally performed by sebum produced by healthy skin.[2] The word emollient is derived from the Latin verb mollire, to soften.[3] Mechanism of action In the human body, water constantly evaporates from the deeper layers of the skin through an effect known as transepidermal water loss. By regulating...

Tree nymph in Greek mythology For other uses, see Dryad (disambiguation). The Dryad by Evelyn De Morgan A dryad (/ˈdraɪ.æd/; Greek: Δρυάδες, sing.: Δρυάς) is a tree nymph or tree spirit in Greek mythology. Drys (δρῦς) signifies oak in Greek. Dryads were originally considered the nymphs of oak trees specifically, but the term has evolved towards tree nymphs in general,[1]. Often their life force was connected to the tree in which they resided and they were usually f...

Episcopal title used in the Church of England Diocese of Exeter For the Roman Catholic Bishop, see Roman Catholic Bishop of Plymouth. Christianity portal The Anglican Bishop of Plymouth is an episcopal title used by a suffragan bishop of the Church of England Diocese of Exeter, in the Province of Canterbury, England.[1] The title takes its name after the city of Plymouth in Devon; the See was erected under the Suffragans Nomination Act 1888 by Order in Council dated 21 November 1922.&...

Backlot set located in Burbank, California Warner ranch redirects here. Not to be confused with Warner Center, Los Angeles, a commercial and residential development that was once a horse ranch owned by movie studio owner Harry Warner. This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Warner Bros. Ranch – news · newspapers ...

Japanese novelist Takeshi ShudoNative name首藤 剛志Born(1949-08-18)August 18, 1949Fukuoka Prefecture, JapanDiedOctober 29, 2010(2010-10-29) (aged 61)Nara, Nara, JapanOccupationScreenwriter, novelistGenreAnime TV seriesYears active1970–2010RelativesTakashi Shudō (father) Takeshi Shudo (首藤 剛志, Shudō Takeshi, (August 18, 1949– October 29, 2010)[1] was a Japanese scriptwriter and novelist. His major works include anime Space Warrior Baldios, the Magical Princes...

American Investment Management Firm PineBridge Investments LLCHeadquarters at Park Avenue TowerFormerlyAIG InvestmentsTypeSubsidiaryIndustryInvestment ManagementFounded1996; 27 years ago (1996)HeadquartersPark Avenue Tower, New York, NY, United StatesNumber of locations25Key peopleJohn L. Thornton (Non-Executive Chairman)Gregory Ehret (CEO)AUMUS$143.1 billion (December 31, 2022)Number of employees700+ (2022)ParentPacific Century GroupWebsitewww.pinebridge.comFootnotes /...

For the 2019 American coming-of-age film, see Summer Night (2019 film). 1986 Italian filmSummer NightDirected byLina WertmüllerWritten byLina WertmüllerCinematographyCamillo BazzoniEdited byLuigi ZittaMusic byPino D'AngiòLilli GrecoRelease date 31 October 1986 (1986-10-31) CountryItalyLanguageItalian Summer Night (Italian: Notte d'estate con profilo greco, occhi a mandorla e odore di basilico, also known as Summer Night with Greek Profile, Almond Eyes and Scent of Basil) is ...

Annual international rugby union competition This article is about the men's rugby union tournament. For the women's tournament, see Women's Six Nations Championship. Six Nations Tournament redirects here. For the ice hockey tournament, see Six Nations Tournament (ice hockey). Six Nations ChampionshipCurrent season or competition: 2024 Six Nations ChampionshipThe Guinness Six Nations logoSportRugby unionInstituted1883; 140 years ago (1883)(as Home Nations Championship)1910&#...

This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Find sources: 1986–87 Celtic F.C. season – news · newspapers · books · scholar · JSTOR (May 2021) This articl...

2011 single by Enter ShikariGandhi Mate, GandhiSingle by Enter Shikarifrom the album A Flash Flood of Colour Released6 December 2011RecordedMay–June 2011Genre Post-hardcore rap rock[1] dubstep[2] Length4:26LabelAmbush RealitySongwriter(s) Chris Batten Rou Reynolds Rob Rolfe Rory Clewlow Enter Shikari singles chronology Sssnakepit (2011) Gandhi Mate, Gandhi (2011) Arguing with Thermometers (2012) Gandhi Mate, Gandhi is a single by British rock band Enter Shikari from their th...

Kembali kehalaman sebelumnya