Difference between revisions of "Shell/The Shell"

From Coder Merlin
imported>Anton-krom
m (added glossary terms)
Line 1: Line 1:
A shell is a user interface which provides access to an operating system’s services. There are two basic types of shells: a “command-line interface” (CLI) and a “graphical user interface” (GUI). You are likely familiar with common GUI’s from Microsoft Windows and perhaps Apple’s macOS. This document will focus on a CLI known as '''bash''', a shell for the Unix operating system by Brian Fox. '''Bash''' is an acronym for Bourne-again shell, named for the Bourne shell that it replaces.
A shell is a user interface that provides access to an operating system's services. Two basic types of shells are used: a "command-line interface" ({{GlossaryReference|Command-line interface|CLI}}) and a "graphical user interface" ({{GlossaryReference|Graphical user interface|GUI}}). You are likely familiar with common GUIs from Microsoft Windows and perhaps Apple’s macOS. This document focuses on a CLI known as {{GlossaryReference|Bash|Bash}}, a shell for the Unix operating system by Brian Fox. '''Bash''' is an acronym for Bourne-again shell, named for the Bourne shell that it replaces.
Login to the Merlin Server as discussed previously. After some introductory text, you’ll see a '''prompt''' (letting you know that the server is ready and waiting for your input) which will look something like this:
Log in to the Merlin Server as discussed earlier. After some introductory text, you'll see a {{GlossaryReference|Prompt|prompt}} (letting you know that the server is ready and waiting for your input) which will look something like this:
{{ConsoleLine|john-williams@codermerlin:~$|}}
{{ConsoleLine|john-williams@codermerlin:~$|}}
You’ll see your login name, an at (@) sign, the name of the server (“codermerlin”), a colon (:), a tilde (~), and a $. This will be followed by a flashing block called a '''cursor'''. The cursor indicates where new characters will appear as you type. The cursor will continue to flash patiently as it awaits input. We’ll get back to the meaning of the tilde soon.
You'll see your login name, an at (@) sign, the name of the server ("codermerlin"), a colon (:), a tilde (~), and a $. This will be followed by a flashing block called a '''cursor'''. The cursor indicates where new characters will appear as you type. The cursor will continue to flash patiently as it awaits input. We'll get back to the meaning of the tilde soon.


We'll be using a server running Linux, a Unix-like operating system.  Almost everything in Unix is either a file or a process. A '''file''' is either a destination or source for a stream of data. A '''process''' is a program that is being executed by the operating system. While printers and screens are considered to be “files” in Unix, a more general way of thinking of files is a collection of data that can be referred to by name. Files can be created by users directly (for example, via a text editor) or indirectly, such as the result of running a program like a compiler.
We'll be using a server running Linux, a Unix-like operating system.  Almost everything in Unix is either a file or a process. A '''file''' is either a destination or source for a stream of data. A '''process''' is a program that is being executed by the operating system. While printers and screens are considered to be "files" in Unix, a more general way of thinking of files is a collection of data that can be referred to by name. Files can be created by users directly (for example, via a text editor) or indirectly, such as the result of running a program like a compiler.




{{MerlinMultipageExperienceNavBar}}
{{MerlinMultipageExperienceNavBar}}

Revision as of 10:22, 31 December 2021

Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

A shell is a user interface that provides access to an operating system's services. Two basic types of shells are used: a "command-line interface" (CLI) and a "graphical user interface" (GUI). You are likely familiar with common GUIs from Microsoft Windows and perhaps Apple’s macOS. This document focuses on a CLI known as Bash, a shell for the Unix operating system by Brian Fox. Bash is an acronym for Bourne-again shell, named for the Bourne shell that it replaces. Log in to the Merlin Server as discussed earlier. After some introductory text, you'll see a prompt (letting you know that the server is ready and waiting for your input) which will look something like this:

john-williams@codermerlin:~$ 

You'll see your login name, an at (@) sign, the name of the server ("codermerlin"), a colon (:), a tilde (~), and a $. This will be followed by a flashing block called a cursor. The cursor indicates where new characters will appear as you type. The cursor will continue to flash patiently as it awaits input. We'll get back to the meaning of the tilde soon.

We'll be using a server running Linux, a Unix-like operating system. Almost everything in Unix is either a file or a process. A file is either a destination or source for a stream of data. A process is a program that is being executed by the operating system. While printers and screens are considered to be "files" in Unix, a more general way of thinking of files is a collection of data that can be referred to by name. Files can be created by users directly (for example, via a text editor) or indirectly, such as the result of running a program like a compiler.