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