Redhat Chapter 2 Flashcards
is a text-based interface which can be used to input instructions to a computer system.
command line
The Linux command line is provided by a program called the _______
shell
The default shell for users in Red Hat Enterprise Linux is the __________.
GNU Bourne-Again Shell (bash)
is an improved version of one of the most successful shells used on UNIX-like systems, the Bourne Shell (sh).
Bash
When a shell is used interactively, it displays a string when it is waiting for a command from the user. This is called the _________.
shell prompt
When a regular user starts a shell, the default prompt ends with a ________ character
$
example:
[user@host ~]$
The $ character is replaced by a ________ character if the shell is running as the superuser, root.
#
example:
[root@host ~]#
The $ character is replaced by a # character if the shell is running as the superuser, ________.
root
The root is a __________ shell, which helps to avoid accidents and mistakes which can affect the whole system.
superuser
Using ________ to execute commands can be powerful.
bash
The bash shell provides a ________ language that can support automation of tasks.
scripting
The ________ has additional capabilities that can simplify or make possible operations that are hard to accomplish efficiently with graphical tools.
shell
The ________ shell is similar in concept to the command-line interpreter found in recent versions of Microsoft Windows, cmd.exe, although it has a more sophisticated scripting language.
bash
Administrators using the Apple Mac who use the Terminal utility may be pleased to note that ________ is the default shell in macOS.
bash
Shell Basics
Commands entered at the shell prompt have three basic parts:
- Command
- Options
- Arguments
is the name of the program to run.
- Command
- Options
- Arguments
Command
The command may be followed by one or more ________, which adjust the behavior of the command or what it will do. It normally starts with one or two dashes (-a or –all, for example).
- Command
- Options
- Arguments
Options
Commands may also be followed by one or more ________, which often indicate a target that the command should operate upon.
- Command
- Options
- Arguments
Arguments
Identify the command, option, and argument in the command (example):
usermod -L user01
Command:
usermod
Option:
-L
Argument:
user01
(The effect of this command is to lock the password of the user01 user account.)
To run the shell, you need to log in to the computer on a terminal ________.
terminal
A ________is a text-based interface used to enter commands into and print output from a computer system.
terminal
The computer might have a hardware keyboard and display for input and output directly connected to it. This is the Linux machine’s physical console ________.
physical console
The physical console supports multiple ________, which can run separate terminals and supports an independent login session.
virtual consoles
You can switch between virtual consoles by pressing ________ and a function key (F1 through F6) at the same time.
Ctrl+Alt