LPI - LINUX
ESSENTIALS
QUESTIONS AND
ANSWERS
Red Hat-based systems use what package file format and what management tools? -
Answers-The package file format is rpm.
The package management tool is yum (or dnf, in the case of Fedora).
What command could you use to create a new empty directory named "Test" in your
current working directory? - Answers-mkdir Test
The CentOS Linux distribution is based on what other distribution? - Answers-Red Hat
NGINX and Apache are two common open-source ___ _______. - Answers-Web
servers
What is the difference between permissive and copyleft? - Answers-Copyleft is more
restrictive in terms of licensing derivative works.
Would you use a standard release or a rolling release distribution for an enterprise
Linux server installation? - Answers-Standard
What would the following line do if placed in a shell script?
# rm -rf * - Answers-Nothing — it's a comment ;-)
What does FLOSS stand for? - Answers-Free Libre Open-Source Software
What does 'cloud_user@ip-10-0-1-10 $' in the console mean? - Answers-The user
cloud_user is logged into the host ip-10-0-1-10, and the shell is running with normal
user privileges ($) and ready for commands.
, What command could you use to reference the documentation of a CLI utility? -
Answers-man or info, followed by the utility name
To what variable would you add the path to a shell script so you could execute it without
referencing the path? - Answers-$PATH
What source does a Linux distribution typically use for installations? - Answers-The
distribution's software repository.
Does the useradd command create the home directory by default? - Answers-useradd
merely sets the home directory in /etc/passwd; it doesn't create it by default.
What command could you use to display command history? - Answers-history
What provides the basic utilities expected to exist on an operating system? - Answers-
The GNU Core utilities
What can dpkg-based systems use for package management? - Answers-apt
What is the basic format of a for loop? - Answers-for VARIABLE in SOMETHING
do COMMANDS
done
Which utility can be used to search for a pattern or string? - Answers-grep
Which utility can be used to count the number of words in a file? - Answers-wc
What is the basic format of an if statement? - Answers-if [ SOME_TEST ]
then
SOME_COMMANDS
fi
How is Linux provisioned in the cloud? - Answers-Through the Linux images supplied by
the cloud provider.
What command would you use to open the info page for ls? - Answers-info ls
What command would you use to see all of the contents (but not ownership,
permissions, ., or ..) of /tmp? - Answers-ls -A /tmp
How can a regular user elevate permissions for a particular command (if granted the
ability in the /etc/sudoers file)? - Answers-sudo
What do we call the collection of data centers that provide compute, application, and
storage services over the internet? - Answers-The cloud!
ESSENTIALS
QUESTIONS AND
ANSWERS
Red Hat-based systems use what package file format and what management tools? -
Answers-The package file format is rpm.
The package management tool is yum (or dnf, in the case of Fedora).
What command could you use to create a new empty directory named "Test" in your
current working directory? - Answers-mkdir Test
The CentOS Linux distribution is based on what other distribution? - Answers-Red Hat
NGINX and Apache are two common open-source ___ _______. - Answers-Web
servers
What is the difference between permissive and copyleft? - Answers-Copyleft is more
restrictive in terms of licensing derivative works.
Would you use a standard release or a rolling release distribution for an enterprise
Linux server installation? - Answers-Standard
What would the following line do if placed in a shell script?
# rm -rf * - Answers-Nothing — it's a comment ;-)
What does FLOSS stand for? - Answers-Free Libre Open-Source Software
What does 'cloud_user@ip-10-0-1-10 $' in the console mean? - Answers-The user
cloud_user is logged into the host ip-10-0-1-10, and the shell is running with normal
user privileges ($) and ready for commands.
, What command could you use to reference the documentation of a CLI utility? -
Answers-man or info, followed by the utility name
To what variable would you add the path to a shell script so you could execute it without
referencing the path? - Answers-$PATH
What source does a Linux distribution typically use for installations? - Answers-The
distribution's software repository.
Does the useradd command create the home directory by default? - Answers-useradd
merely sets the home directory in /etc/passwd; it doesn't create it by default.
What command could you use to display command history? - Answers-history
What provides the basic utilities expected to exist on an operating system? - Answers-
The GNU Core utilities
What can dpkg-based systems use for package management? - Answers-apt
What is the basic format of a for loop? - Answers-for VARIABLE in SOMETHING
do COMMANDS
done
Which utility can be used to search for a pattern or string? - Answers-grep
Which utility can be used to count the number of words in a file? - Answers-wc
What is the basic format of an if statement? - Answers-if [ SOME_TEST ]
then
SOME_COMMANDS
fi
How is Linux provisioned in the cloud? - Answers-Through the Linux images supplied by
the cloud provider.
What command would you use to open the info page for ls? - Answers-info ls
What command would you use to see all of the contents (but not ownership,
permissions, ., or ..) of /tmp? - Answers-ls -A /tmp
How can a regular user elevate permissions for a particular command (if granted the
ability in the /etc/sudoers file)? - Answers-sudo
What do we call the collection of data centers that provide compute, application, and
storage services over the internet? - Answers-The cloud!