The Shell Flashcards
What is the “Shell”?
The Shell describes the “outer” part of the operating system, the things the end user gets in contact with. In contrast to the kernel, which is nothing one can “touch”, it provides input and output methods.
Which types of shells are there?
There are not only text-mode shells (CLI), but also the graphical interface can be described as a shell.
Name examples for shells
csh, tcsh, bash, sh and ksh
What was one of the first shells called and how was it named after the GNU project rewrote it?
Bourne shell (1977). When the GNU project was created, it rewrote the Bourne shell as Bourne Again Shell (bash), which is still widely used on different flavours of Linux as well as Android.
What’s the aim of the C shell?
Providing similar syntax and input mechanisms as C programs
Which ability do all shells provide?
The ability to save several commands into a file and run that later on (script). A script may thus require a certain shell to be invoked.
What do you see when you fire up a shell?
kwmuser@localhost:~$ _
You can see the currently logged on username, followed by an at sign and the hostname of the computer. After the colon , the current working directory is displayed.
Which sign represents your home folder?
~
Where can you find your home directory as regular user?
/home/USERNAME
Where can you find your home directory as root user?
/root
How is a command usually made up?
A command is usually crafted of its name and optionally arguments. (
How do you know which part of a command is the argument?
Arguments are usually prefixes with a dash - or two dashes for the long format –.
Example: ls -l
Which concept does Linux have for its users?
Linux has a user/group concept. That means that users can belong to one or several groups, groups can thus hold one or several users.
What is the most powerful user account, present on every Linux installation?
the “root” account
Who or what is root?
The most powerful user account, present on every Linux installation. “root” has the power to overrule everything and thus the potential to destroy the complete system.