Topic 4 - Shells Flashcards
what is a
shell
this is what allows a user to interact with the operating system and perform actions such as loading and executing additional programs. This can be either CLI or GUI based
this is what allows a user to interact with the operating system and perform actions such as loading and executing additional programs. This can be either CLI or GUI based
what is a
shell
what are the rues / format when
passing arguments to a linux command
the rules / format for this are:
zero, one, or more arguments can be given to the command, but where more than one argument is given, the order is significant
what is the outcome of typing the command
date
into a linux terminal
in a linux terminal
this is Used to view the current, past or future date and allows setting a date
what type of programmes are likely to be
part of a desktop environment
these will most likely come with
utility programmes
allowing for configuration of this or enabling simple tasks such as word processing
what is the outcome of typing the command
Help command
into a linux terminal
in a linux terminal:
this will display information about built in commands within the interpreter (can be limited so best to start with the man pages)
in a linux terminal:
this will search the man pages for the given keyword. This is a useful command if you know the functionality you require but don’t know the command or cant remember the exact name of the command
what is the outcome of typing the command
Apropos keyword
into a linux terminal
what is the outcome of typing the command
History number of command in a history list
into a linux terminal
in a linux terminal:
this will select that command from the history list
in a linux terminal:
this gives detailed written description about the given command (use tab key to jump between content)
what is the outcome of typing the command
Info command
into a linux terminal
what does this linux hotkey achieve
Ctrl + alt + t
in linux this will open a terminal window
in terms of the shell and the operating system
what 2 things does the shell provide
- It provides the outer layer of the operating system
- It provides the environment in which programs will run. For example opening a shell in two different directories gives the shells separate environments of which they keep track off
where does the
terminal shell
of an operating system get its name from
this gets its name from the early days of computers. Back then a terminal was a keyboard and a printer although later versions used a screen. A terminal was ‘dumb’ it did no processing instead it was connected to a mainframe computer by a serial cable and the mainframe did all the processing

this was a terminal connected to a mainframe computer and could receive system error messages
today the term is still used in a commmon way and we use this term to describe the window that outputs messages from our programme to this
what is a
console
and how is term used today
what is the outcome of typing the command
Cal month year
into a linux terminal
in a linux terminal:
this is Used to display a calender
what are the 4 rules / format for
using options with a linux command
the rules / format of this are:
- options are flagged with a hyphen
- options are single letters
- several options can be combined
- they can be given in any order.
what is the outcome of typing the command
Apropos keyword
into a linux terminal
in a linux terminal:
this will search the man pages for the given keyword. This is a useful command if you know the functionality you require but don’t know the command or cant remember the exact name of the command
what is the outcome of typing the command
ls -t
into a linux terminal
in a linux terminal:
this will request that the contents of the directory are output is in date order
what 2 features does the tab key offer in a linux terminal
Pressing tab key once offers tab completion
Pressing tab key again will show a list of commands that are relevant to what you have already typed
what is the outcome of typing the command
Whoami
into a linux or windows terminal
in a windows or linux terminal:
this will Display the user name of the currently logged in user
in a linux terminal:
this will select that command from the history list
what is the outcome of typing the command
History number of command in a history list
into a linux terminal
this gets its name from the early days of computers. Back then a terminal was a keyboard and a printer although later versions used a screen. A terminal was ‘dumb’ it did no processing instead it was connected to a mainframe computer by a serial cable and the mainframe did all the processing

where does the
terminal shell
of an operating system get its name from
in a linux terminal
this is Used to view the current, past or future date and allows setting a date
what is the outcome of typing the command
date
into a linux terminal
what is the outcome of typing the command
Command –help
into a linux terminal
in a linux terminal:
this will display information about the given command
This is a GUI shell offered by an operating system that tries to mimic an actual desktop, such as allowing the movement and overlapping of documents.
what is a
desktop environment
what is the outcome of typing the command
ls -l
into a linux terminal
in a linux terminal:
this will produces a detailed list about directories and files within the directory
what is the outcome of typing the command
Man command
into a linux terminal
in a linux terminal:
this opens up the user manual page for the given command
- The shell identifies the location of the file to be ran
- The operating system will take different actions for loading and running the file depending on the files contents
A compiled file containing machine code
- The operating system allocates memory for the file
- The contents of the file is loaded into memory
- The operating system creates a new process for the program
- The operating system starts the execution of the program
A source file written in plain text such as a script containing OS instructions or a python file
- The operating system hands control to the appropriate interpreter
- The interpreter reads and executes each of the commands within the file
give an overview of the steps involved
when a program is loaded and ran
and the
2 options that the operating system can take depending on the contents of the file
give an overview of the steps involved
when a program is loaded and ran
and the
2 options that the operating system can take depending on the contents of the file
- The shell identifies the location of the file to be ran
- The operating system will take different actions for loading and running the file depending on the files contents
A compiled file containing machine code
- The operating system allocates memory for the file
- The contents of the file is loaded into memory
- The operating system creates a new process for the program
- The operating system starts the execution of the program
A source file written in plain text such as a script containing OS instructions or a python file
- The operating system hands control to the appropriate interpreter
- The interpreter reads and executes each of the commands within the file
in a linux terminal:
this is Used to display a calender
what is the outcome of typing the command
Cal month year
into a linux terminal
in linux this will open a terminal window
what does this linux hotkey achieve
Ctrl + alt + t
- It provides the outer layer of the operating system
- It provides the environment in which programs will run. For example opening a shell in two different directories gives the shells separate environments of which they keep track off
in terms of the shell and the operating system
what 2 things does the shell provide
in linux this will:
used with an open terminal will open a new terminal
what does this linux hotkey achieve
Ctrl + shift + n
what is the outcome of typing the command
Whatis command
into a linux terminal
in a linux terminal:
this searches the man pages and gives a one line description of what the given command is
in a linux terminal:
this opens up the user manual page for the given command
what is the outcome of typing the command
Man command
into a linux terminal
in a linux terminal:
this will display information about the given command
what is the outcome of typing the command
Command –help
into a linux terminal
the rules / format of this are:
- options are flagged with a hyphen
- options are single letters
- several options can be combined
- they can be given in any order.
what are the 4 rules / format for
using options with a linux command
Pressing tab key once offers tab completion
Pressing tab key again will show a list of commands that are relevant to what you have already typed
what 2 features does the tab key offer in a linux terminal
in a windows or linux terminal:
this will Display the user name of the currently logged in user
what is the outcome of typing the command
Whoami
into a linux or windows terminal
these will most likely come with
utility programmes
allowing for configuration of this or enabling simple tasks such as word processing
what type of programmes are likely to be
part of a desktop environment
in terms of the user this allows / provides:
- Move, close and resize windows
- Keep track of open applications via a task bar
- Provides a clipboard so data can be copied seamlessly across different applications
- Provides icons and buttons
name 4 things that
a desktop environment allows / provides for the user
name 4 things that
a desktop environment allows / provides for the user
in terms of the user this allows / provides:
- Move, close and resize windows
- Keep track of open applications via a task bar
- Provides a clipboard so data can be copied seamlessly across different applications
- Provides icons and buttons
in a linux terminal:
this will produces a detailed list about directories and files within the directory
what is the outcome of typing the command
ls -l
into a linux terminal
the rules / format for this are:
zero, one, or more arguments can be given to the command, but where more than one argument is given, the order is significant
what are the rues / format when
passing arguments to a linux command
what is a
console
and how is term used today
this was a terminal connected to a mainframe computer and could receive system error messages
today the term is still used in a commmon way and we use this term to describe the window that outputs messages from our programme to this
what is a
desktop environment
This is a GUI shell offered by an operating system that tries to mimic an actual desktop, such as allowing the movement and overlapping of documents.
what does this linux hotkey achieve
Ctrl + shift + n
in linux this will:
used with an open terminal will open a new terminal
in a linux terminal:
this will request that the contents of the directory are output is in date order
what is the outcome of typing the command
ls -t
into a linux terminal
what is the outcome of typing the command
History
into a linux or windows terminal
in a linux terminal:
this is Used to view a list of previously executed commands
what is the outcome of typing the command
Info command
into a linux terminal
in a linux terminal:
this gives detailed written description about the given command (use tab key to jump between content)
in a linux terminal:
this searches the man pages and gives a one line description of what the given command is
what is the outcome of typing the command
Whatis command
into a linux terminal
in a linux terminal:
this is Used to view a list of previously executed commands
what is the outcome of typing the command
History
into a linux or windows terminal
in a linux terminal:
this will display information about built in commands within the interpreter (can be limited so best to start with the man pages)
what is the outcome of typing the command
Help command
into a linux terminal