with Verified Answers
On which Distros will the prompt for a regular user will likely look like this:
carol@mycomputer:~$ - CORRECT ANSWER On Ubuntu or Debian GNU/Linux
On which Distros will the superuser's prompt will look like this:
root@mycomputer:~# - CORRECT ANSWER On Ubuntu or Debian GNU/Linux
On which Distros will the prompt for a regular user will likely look like this:
[dave@mycomputer ~]$ - CORRECT ANSWER On CentOS or Red Hat Linux
On which Distros will the superuser's prompt will look like this:
[root@mycomputer ~]# - CORRECT ANSWER On CentOS or Red Hat Linux
What is the name of the user that runs the shell (Shell default Prompt) - CORRECT
ANSWER username
What is the name of the host on which the shell runs. (Shell default Prompt) -
CORRECT ANSWER hostname
The directory that the shell is currently in. A ~ means that the shell is in the
current user's home directory. (Shell default Prompt) - CORRECT ANSWER
current_directory
,$ indicates the shell is run by a regular user.
# indicates the shell is run by the superuser root. - CORRECT ANSWER shell_type
command [option(s)/parameter(s)...] [argument(s)...] - CORRECT ANSWER
Command Line Structure
In Bash, there are three types of quotes: - CORRECT ANSWER Double quotes
Single quotes
Escape characters
tell the shell to take the text in between the quote marks as regular characters. -
CORRECT ANSWER Double Quotes
revoke any special meaning from each character - CORRECT ANSWER Single
Quotes
We can use BLANK to remove special meanings of characters from Bash. -
CORRECT ANSWER Escape Characters " \ "
These commands are part of the shell itself and are not separate programs. There
are around 30 such commands. Their main purpose is executing tasks inside the
shell - CORRECT ANSWER Internal
, These commands reside in individual files. These files are usually binary programs
or scripts. When a command which is not a shell builtin is run, the shell uses the
PATH variable to search for an executable file with same name as the command. In
addition to programs which are installed with the distribution's package manager,
users can create their own external commands as well. - CORRECT ANSWER
External
The command BLANK shows what type a specific command is - CORRECT ANSWER
type
Command creates an empty file or update an existing file's modification date. -
CORRECT ANSWER touch
These variables are available to the current shell process only - CORRECT ANSWER
Local variables
These variables are available both in a specific shell session and in sub processes
spawned from that shell sessio - CORRECT ANSWER Environment variables
a bundle that consists of a Linux kernel and a selection of applications that are
maintained by a company or user community - CORRECT ANSWER distribution
Distributions of the Debian distribution family use the package manager BLANK to
manage the software that is run on the operating system - CORRECT ANSWER
dpkg