Docsity

Linux Essentials Exam Graded A+, Exams of Advanced Education

Toggle sidebar
bg1
LPI - Linux Essentials Exam Graded A+
Red Hat-based systems use what package file format and what management tools? -
ANS-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? - ANS-mkdir Test
The CentOS Linux distribution is based on what other distribution? - ANS-Red Hat
NGINX and Apache are two common open-source ___ _______. - ANS-Web servers
What is the difference between permissive and copyleft? - ANS-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? - ANS-Standard
What would the following line do if placed in a shell script?
# rm -rf * - ANS-Nothing โ€” it's a comment ;-)
What does FLOSS stand for? - ANS-Free Libre Open-Source Software
What does 'cloud_user@ip-10-0-1-10 $' in the console mean? - ANS-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? - ANS-
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? - ANS-$PATH
What source does a Linux distribution typically use for installations? - ANS-The
distribution's software repository.
Does the useradd command create the home directory by default? - ANS-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? - ANS-history
What provides the basic utilities expected to exist on an operating system? - ANS-The
GNU Core utilities
pf3
pf4
pf5

Partial preview of the text

Download Linux Essentials Exam Graded A+ and more Exams Advanced Education in PDF only on Docsity!

LPI - Linux Essentials Exam Graded A+

Red Hat-based systems use what package file format and what management tools? - ANS-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? - ANS-mkdir Test The CentOS Linux distribution is based on what other distribution? - ANS-Red Hat NGINX and Apache are two common open-source ___ _______. - ANS-Web servers What is the difference between permissive and copyleft? - ANS-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? - ANS-Standard What would the following line do if placed in a shell script?

rm -rf * - ANS-Nothing โ€” it's a comment ;-)

What does FLOSS stand for? - ANS-Free Libre Open-Source Software What does 'cloud_user@ip-10-0-1-10 $' in the console mean? - ANS-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? - ANS- 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? - ANS-$PATH What source does a Linux distribution typically use for installations? - ANS-The distribution's software repository. Does the useradd command create the home directory by default? - ANS-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? - ANS-history What provides the basic utilities expected to exist on an operating system? - ANS-The GNU Core utilities

What can dpkg-based systems use for package management? - ANS-apt What is the basic format of a for loop? - ANS-for VARIABLE in SOMETHING do COMMANDS done Which utility can be used to search for a pattern or string? - ANS-grep Which utility can be used to count the number of words in a file? - ANS-wc What is the basic format of an if statement? - ANS-if [ SOME_TEST ] then SOME_COMMANDS fi How is Linux provisioned in the cloud? - ANS-Through the Linux images supplied by the cloud provider. What command would you use to open the info page for ls? - ANS-info ls What command would you use to see all of the contents (but not ownership, permissions, ., or ..) of /tmp? - ANS-ls -A /tmp How can a regular user elevate permissions for a particular command (if granted the ability in the /etc/sudoers file)? - ANS-sudo What do we call the collection of data centers that provide compute, application, and storage services over the internet? - ANS-The cloud! GPL is an example of what type of license? - ANS-Copyleft How could you hide the file "file" from being shown in a directory listing? - ANS-Change it to .file Which utilities can be used to print the contents of a file to the screen? - ANS-cat less more What method/protocol do we use to securely connect to a remote Linux server? - ANS- SSH (Secure Shell) Would you use Samba or NFS to share files with Windows users? - ANS-Samba. (Samba is a file sharing service that uses CIFS for compatibility with Windows devices.) What command could you use to create a new empty file named "file1" in your current working directory? - ANS-touch file

What utility can you preface a command with to execute with elevated privileges? - ANS-sudo What does FSF stand for? - ANS-Free Software Foundation How is Linux installed in a virtualized environment? - ANS-Typically through conventional means, from installation media onto the abstracted bare metal. For a user to be able to enter a directory, what level of access must they have? - ANS- Execute The Linux kernel, GNU core, X server, and GUI comprise a Linux ____________. - ANS-Distribution (The X server and GUI are optional.) What command would you use to list all files in a directory and nothing else? - ANS-ls -a What happens to files in /var/tmp upon system boot? - ANS-Nothing. The contents of /tmp are cleared upon system boot, but the contents of /var/tmp are not. What command could you use to unpack ./archive.tar? - ANS-tar xf ./archive.tar What environment variable is used for the shell prompt? - ANS-$PS When an open-source license is written such that any derivative works must use the same license, we call this ________. - ANS-Copyleft In what folder will you find system logs? - ANS-/var/log Where did MariaDB come from, and what is it? - ANS-MariaDB was forked from MySQL as a database server application. What command could you use to remove all files starting with the text "file_" from the /tmp directory? - ANS-rm /tmp/file_* What is the difference between a system user and a regular user? - ANS-Apart from system users having a lower UID, system users normally don't have a login shell. What command will create the user 'tester' and the home directory at the same time with defaults? - ANS-useradd -m tester What do permissions of 644 mean? - ANS-User: Read and write Group: Read Everyone: Read

What are OwnCloud and NextCloud? - ANS-OwnCloud and NextCloud are open-source cloud applications that function like DropBox. What command could you use to unpack the gzip-compressed archive ./archive.tgz? - ANS-tar xzf ./archive.tgz What command could you use to view kernel messages? - ANS-dmesg What commands could you use to see the group membership of the user cloud_user? - ANS-groups cloud_user id cloud_user cat /etc/group | grep cloud_user Unity, GNOME, and KDE are all examples of what? - ANS-Linux desktop environments What is the passwd command used for? - ANS-passwd is used for changing passwords and locking accounts. What command would you use to print the current working directory to the screen? - ANS-pwd What option would you use with ls to show permissions and ownership? - ANS--l Debian-based systems use what package file format and what management tools? - ANS-The package file format is dpkg. The package management tool is apt. What command would you use to open the man page for ls? - ANS-man ls Root always has a UID of what? - ANS- What will the following command do to the existing file "file1" in your current working directory? echo "" > file1 - ANS-It will replace it with an empty file. To append to a file, you would want to use >>. What are some common open-source programming languages? - ANS-C Java Javascript Perl Python PHP In what root-level directory would you find folders for every running PID on the system?

  • ANS-/proc

Are user passwords stored in /etc/passwd? - ANS-No. The hashes are stored in /etc/shadow. What is the purpose of a free-software license? - ANS-To establish the terms of modification and redistribution. What is the exit code of a command that ran successfully? - ANS-