Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 6 pages
Exam (elaborations)

LPI Linux Essentials Exam Questions and Answers Latest Update 100% Correct.

Document preview thumbnail
Preview 2 out of 6 pages

Which command in a script would display the text "hello world" to the screen, followed by a new line? - ️️Echo "hello world" You are running a ping command to see if a particular host is set up. How would you specify to the ping command that only five packets get sent to the remote host? - ️️ping -c 5 You need to troubleshoot a hardware issue. Which command would let you view the kernel ring buffer to see what hardware was just added? - ️️dmesg | less (driver message) You have been editing a configuration file using vi. You realize that you've made many mistakes and need to quit without saving the changes so that you can start over. Which command will allow you to do this? - ️️:q! Or Q bang What directory would the ~ character represent? - ️️The home directory of the currently logged in user. What is the default shell for most Linux distributions - ️️Bash If you wanted to disable a second network interference in Linux what command would you enter at the shell? - ️️ifdown eth1 Which of the following sections give a brief review of the syntax used for a particular command or utility within a man page? - ️️SYNOPSIS In which directory could you add files so that a newly created user will automatically have them when they first log in? - ️️/etc/skel Which of the following provides binary files containing prewritten code elements or interfaces that programmers can call when writing Linux programs? - ️️Libraries You need to verify that a remote host with a hostname of is up and running. Which of the following commands would you enter at the shell prompt to do this? - ️️ping While using vi to edit a file in command mode, you try to use the BACKSPACE key to delete a word, but nothing happens. What's wrong? - ️️You have to switch to insert mode. Which command would uncompress the contents in the file '2' - ️️bunzip2 How would you add a new user account to a system? - ️️useradd newguy Which software development model is considered to be less structured than the others? - ️️Bazaar Which file(s) are used for DNS resolution? - ️️/etc/hosts and /etc/ An application has the following permissions set on it: Rw-r—r— Yet it does not run. Why is that? - ️️There is no execute permission set How would you set permissions on a newly created script so that it could be executed? - ️️Chmod u+x What is the proper syntax for creating a parent directory, followed by a child subdirectory? - ️️mkdir -p dir1/dir2 You need to create a symbolic link from a file located at /usr/share/manual to a link in your home directory named 'manual'. Which command would we use to achieve this? - ️️ln -s /usr/share/doc/manual ~/manual While working in the command line console, not running X Windows, you suddenly need access to another shell to do another task. You don't want to quit or halt the current application. What might you do to run your other functions in a shell while still running your current application? - ️️You can press ALT-F2 or CTRL-ALT-F2 to open an alternate console screen and access a new shell session. You need to search for man that relate to the Postfix service. Which command will do this? - ️️apropos postfix and man -k postix (Must be root) Which directory contains filesystem management utilities such as cp or mv? - ️️/bin and /usr/bin What utility can we use to find manual pages? - ️️ManWhat file might we look at to view our most recently entered shell commands? - ️️~/.bash_history What command will bring a list of all running processes on our system? - ️️Top Which of the following commands would you use to view a default gateway address on your system? - ️️Route and netstat -r

Content preview

LPI Linux Essentials Exam Questions
Which command in a script would display the text "hello world" to the screen, followed
by a new line? - ✔️✔️Echo "hello world"


You are running a ping command to see if a particular host is set up. How would you
specify to the ping command that only five packets get sent to the remote host? -
✔️✔️ping -c 5 host.example.com


You need to troubleshoot a hardware issue. Which command would let you view the
kernel ring buffer to see what hardware was just added? - ✔️✔️dmesg | less (driver
message)

You have been editing a configuration file using vi. You realize that you've made many
mistakes and need to quit without saving the changes so that you can start over. Which
command will allow you to do this? - ✔️✔️:q! Or Q bang

What directory would the ~ character represent? - ✔️✔️The home directory of the
currently logged in user.

What is the default shell for most Linux distributions - ✔️✔️Bash



If you wanted to disable a second network interference in Linux what command would
you enter at the shell? - ✔️✔️ifdown eth1

Which of the following sections give a brief review of the syntax used for a particular
command or utility within a man page? - ✔️✔️SYNOPSIS

In which directory could you add files so that a newly created user will automatically
have them when they first log in? - ✔️✔️/etc/skel

Which of the following provides binary files containing prewritten code elements or
interfaces that programmers can call when writing Linux programs? - ✔️✔️Libraries

You need to verify that a remote host with a hostname of dns2.linuxacademy.com is up
and running. Which of the following commands would you enter at the shell prompt to
do this? - ✔️✔️ping dns2.linuxacademy.com

, While using vi to edit a file in command mode, you try to use the BACKSPACE key to
delete a word, but nothing happens. What's wrong? - ✔️✔️You have to switch to insert
mode.

Which command would uncompress the contents in the file 'important.bz2' -
✔️✔️bunzip2

How would you add a new user account to a system? - ✔️✔️useradd newguy

Which software development model is considered to be less structured than the others?
- ✔️✔️Bazaar


Which file(s) are used for DNS resolution? - ✔️✔️/etc/hosts and /etc/resolv.conf

An application has the following permissions set on it:
Rw-r—r—
Yet it does not run. Why is that? - ✔️✔️There is no execute permission set

How would you set permissions on a newly created script so that it could be executed? -
✔️✔️Chmod u+x script.sh

What is the proper syntax for creating a parent directory, followed by a child
subdirectory? - ✔️✔️mkdir -p dir1/dir2

You need to create a symbolic link from a file located at /usr/share/manual to a link in
your home directory named 'manual'. Which command would we use to achieve this? -
✔️✔️ln -s /usr/share/doc/manual ~/manual

While working in the command line console, not running X Windows, you suddenly need
access to another shell to do another task. You don't want to quit or halt the current
application. What might you do to run your other functions in a shell while still running
your current application? - ✔️✔️You can press ALT-F2 or CTRL-ALT-F2 to open an
alternate console screen and access a new shell session.

You need to search for man that relate to the Postfix service. Which command will do
this? - ✔️✔️apropos postfix and man -k postix (Must be root)

Which directory contains filesystem management utilities such as cp or mv? - ✔️✔️/bin
and /usr/bin

What utility can we use to find manual pages? - ✔️✔️Man

Document information

Uploaded on
September 22, 2024
Number of pages
6
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$8.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ACADEMICMATERIALS
4.0
(100)
Sold
622
Followers
185
Items
10510
Last sold
1 month ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions