Shell (computing)

A graphical interface similar to one from the late 1980s, which features a graphical 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 Nushell, 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:

La formula condensata, nota anche come formula razionale[1], è una formula chimica, in cui si usa un modo alternativo d'indicare la struttura delle molecole, e possiede una sua utilità pratica nel caso di composti semplici non ciclici. Il suo scopo non è tanto quello di evidenziare la disposizione spaziale degli atomi, ma piuttosto è quello di mostrare come si succedono i legami tra i gruppi che costituiscono una molecola mediante una rappresentazione grafica contratta e compatta....

 

Festival Film Indonesia ke-31Tanggal10 Desember 2011TempatHall D2 Jakarta International Expo, Kemayoran, Jakarta UtaraPembawa acara Reza Rahardian Nirina Zubir Pembawa pra-acara Arie Untung Sari Nila Penyelenggara Komite Festival Film Indonesia Kementerian Pendidikan dan Kebudayaan Republik Indonesia SorotanFilm TerbaikSang PenariPenyutradaraan TerbaikIfa IsfansyahSang PenariAktor TerbaikEmir MahiraRumah Tanpa JendelaAktris TerbaikPrisia NasutionSang PenariPenghargaan seumur hidupJ.B. Kristan...

 

Albus DumbledorePemeranRichard HarrisMichael GambonInformasiJenis kelaminPria Albus Percival Wulfric Brian Dumbledore merupakan salah satu tokoh dalam serial novel ciptaan J. K. Rowling sebagai Kepala Sekolah Sihir Hogwarts. Ia merupakan seorang ahli sihir yang bijaksana dan paling dihormati di dunia Sihir. Ia berperan sebagai pembimbing atau penasihat tokoh utama, Harry Potter sebagaimana konsep perwatakan Merlin atau Gandalf. Ia selalu mengambil berat terhadap Harry Potter dan memberikan do...

Untuk halaman disambiguasi, lihat Lumut. HornwortRentang fosil: 90–0 jtyl PreЄ Є O S D C P T J K Pg N Upper Cretaceous (tetapi lihat teks) to recent Phaeoceros laevis (L.) Prosk. Klasifikasi ilmiah Kerajaan: Plantae Divisi: AnthocerotophytaStotler & Stotl.-Crand., 1977[1] Kelas & Ordo Leiosporocerotopsida Leiosporocerotales Anthocerotopsida Anthocerotales Dendrocerotales Notothyladales Phymatocerotales see Classification. Sinonim Anthocerotae Lumut tanduk atau disebut...

 

15th and final shogun of the Tokugawa Shogunate from 1866–67 In this Japanese name, the surname is Tokugawa. Prince Tokugawa Yoshinobu 徳川 慶喜Yoshinobu in 1867ShōgunIn officeAugust 29, 1866 — 19 November 1867PredecessorTokugawa IemochiSuccessorPosition abolished Itō Hirobumi (as Prime Minister of Japan)Monarch Kōmei Meiji Member of the House of PeersIn office1902–1910Born(1837-10-28)October 28, 1837Edo, JapanDiedNovember 22, 1913(1913-11-22) (aged 76)Bunkyō, JapanBurialYa...

 

Jonathan Zebina Informasi pribadiNama lengkap Jonathan ZebinaTanggal lahir 19 Juli 1978 (umur 45)Tempat lahir Paris, PrancisTinggi 1,85 m (6 ft 1 in)Posisi bermain BekInformasi klubKlub saat ini ToulouseNomor 11Karier junior1995–1996 CannesKarier senior*Tahun Tim Tampil (Gol)1996–1998 Cannes 27 (0)1998–2000 Cagliari 48 (0)2000–2004 Roma 88 (1)2004–2010 Juventus 98 (0)2010–2011 Brescia 28 (0)2011–2012 Brest 28 (0)2012– Toulouse 4 (0)Tim nasional2005 Prancis...

Voce principale: Vicenza Calcio. ACIVIStagione 1910-1911Il Vicenza finalista in campionato Sport calcio SquadraVicenza Calcio Allenatore Giulio Fasolo Presidente Augusto Bucchia Prima CategoriaFinale Miglior marcatoreCampionato: Danese (5) StadioCampo Borgo Casale 1909-1910 1911-1912 Si invita a seguire il modello di voce Questa voce raccoglie le informazioni riguardanti l'Associazione Del Calcio Di Vicenza nelle competizioni ufficiali della stagione 1910-1911. Indice 1 Stagione 2 Rosa 3 Ris...

 

Pour les articles homonymes, voir Villette et Anthon (homonymie). Villette-d'Anthon Hôtel de Ville de Villette-d'Anthon. Blason Administration Pays France Région Auvergne-Rhône-Alpes Département Isère Arrondissement La Tour-du-Pin Intercommunalité Communauté de communes Lyon-Saint-Exupéry en Dauphiné Maire Mandat Bruno Gindre 2020-2026 Code postal 38280 Code commune 38557 Démographie Gentilé Villettois Populationmunicipale 5 212 hab. (2021 ) Densité 229 hab./km2 G�...

 

Catholic women's college in Omaha, Nebraska, US For the constituent college of the University of Oxford, see New College, Oxford. College of Saint MaryTypePrivate women's universityEstablished1923Religious affiliationCatholic (Sisters of Mercy)Academic affiliationsSpace-grantPresidentHeather A. SmithStudents857 (539 undergraduate) Fall 2023[1]LocationOmaha, Nebraska, United StatesCampusUrbanColors     Navy Blue, Sky Blue & GoldNicknameFlamesSporting affiliationsNAIA...

Six Lessons from Madame La ZongaPoster promosional untuk film tersebutSutradaraJohn RawlinsProduserJoseph GershensonDitulis olehBen Chapman, Larry RhinePemeranLupe VélezLeon ErrolPenata musikEverett CarterMilton RosenSinematograferJohn W. BoylePenyuntingEdward CurtissDistributorUniversal PicturesTanggal rilis 17 Januari 1941 (1941-01-17) Durasi62 menitNegaraAmerika SerikatBahasaInggris Six Lessons from Madame La Zonga adalah sebuah film komedi Amerika Serikat tahun 1941 garapan Jo...

 

American football player (born 1988)This article is about the American football player. For other people with the same name, see Russell Wilson (disambiguation). American football player Russell WilsonWilson with the Denver Broncos in 2022No. 3 – Pittsburgh SteelersPosition:QuarterbackPersonal informationBorn: (1988-11-29) November 29, 1988 (age 35)Cincinnati, Ohio, U.S.Height:5 ft 11 in (1.80 m)Weight:215 lb (98 kg)Career informationHigh school:Collegiate Scho...

 

English theatre and film director (1928–1991) For other people named Tony Richardson, see Tony Richardson (disambiguation). Tony RichardsonBornCecil Antonio Richardson(1928-06-05)5 June 1928Shipley, West Riding of Yorkshire, EnglandDied14 November 1991(1991-11-14) (aged 63)Los Angeles, California, USOccupationsDirectorproducerscreenwriterYears active1952–1991Spouse Vanessa Redgrave ​ ​(m. 1962; div. 1967)​Children3, including Natas...

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: Daisenryaku – news · newspapers · books · scholar · JSTOR (January 2018) (Learn how and when to remove this message) Box cover of Gendai Daisenryaku (1985)Daisenryaku (大戦略, Great Strategy) is a series of war strategy video games by SystemSoft and SystemSo...

 

American politician Hamilton Dudley ColemanMember of the U.S. House of Representativesfrom Louisiana's 2nd districtIn officeMarch 4, 1889 – March 3, 1891Preceded byMatthew D. LaganSucceeded byMatthew D. Lagan Personal detailsBorn(1845-05-12)May 12, 1845New Orleans, LouisianaDiedMarch 16, 1926(1926-03-16) (aged 80)Biloxi, MississippiResting placeMetairie Cemetery in New Orleans, LouisianaPolitical partyRepublicanOccupationBusinessmanMilitary serviceBranch/service Co...

 

2016年美國總統選舉 ← 2012 2016年11月8日 2020 → 538個選舉人團席位獲勝需270票民意調查投票率55.7%[1][2] ▲ 0.8 %   获提名人 唐納·川普 希拉莉·克林頓 政党 共和黨 民主党 家鄉州 紐約州 紐約州 竞选搭档 迈克·彭斯 蒂姆·凱恩 选举人票 304[3][4][註 1] 227[5] 胜出州/省 30 + 緬-2 20 + DC 民選得票 62,984,828[6] 65,853,514[6]...

An aquarium with a fish feeder Aquarium fish feeders are electric or electronic devices that are designed to feed aquarium fish at regular intervals. They are often used to feed fish when the aquarist is on vacation or is too busy to maintain a regular feeding schedule.[1] Design Fish feeders are usually clamped to the wall of the tank just over the water. Most designs consist of a hopper which is loaded with a variety of dry food, a timer which rotates the hopper at regular intervals...

 

Australian military air base YMPC redirects here. For the cricket club in Barbados, see YMPC Cricket Club. For the Young Moro Professionals Council, see Young Moro Professionals Council. RAAF WilliamsRAAF Point CookRAAF LavertonPoint Cook and LavertonNear Melbourne, Victoria in AustraliaTake off of a RAAF Lockheed C-130 Hercules at RAAF Williams, Point Cook, in 2006RAAF WilliamsLocation south-west of Melbourne CBDCoordinates37°55′54″S 144°45′12″E / 37.93167°S 1...

 

Stabilisation ForceSFOR-CФОРLo stemma della missione SFOR Descrizione generaleAttiva21 dicembre 1996 - 1º dicembre 2004 Nazione NATO ServizioPeace-enforcement TipoForza multinazionale Dimensione12000 Preceduta daIFOR Sostituita daAlthea fonti nelle note Voci su unità militari presenti su Wikipedia La Stabilisation Force (SFOR) è stata una forza multinazionale della NATO dispiegata in Bosnia ed Erzegovina ed incaricata di difendere gli Accordi di Dayton. Indice 1 Storia 2 Stati Partecipa...

1909 play by George Bernard Shaw The Glimpse of RealityWritten byGeorge Bernard ShawDate premiered20 November 1927Place premieredArts Theatre, LondonOriginal languageEnglishSubjectA medieval Count is waylaid by murderersGenresatire of historical melodramaSettingAn inn on the edge of an Italian lake The Glimpse of Reality, A Tragedietta (1909) is a short play by George Bernard Shaw, set Italy during the 15th century. It is a parody of the verismo melodramas in vogue at the time. Shaw included ...

 

لورا ديرن (بالإنجليزية: Laura Dern)‏  معلومات شخصية اسم الولادة لورا إليزابيث ديرن الميلاد 10 فبراير 1967 (العمر 57 سنة)لوس أنجليس، كاليفورنيا الإقامة لوس أنجلوس  مواطنة الولايات المتحدة  الطول 179 سنتيمتر  الزوج بن هاربر (2005-الآن) العشير كايل ماكلاشلاننيكولاس كيجريني هار�...