If you wanted to disable a second network interference in
ifdown eth1
Linux what command would you enter at the shell?
You have been editing a configuration file using vi. You
realize that you've made many mistakes and need to quit
:q! Or Q bang
without saving the changes so that you can start over.
Which command will allow you to do this?
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
You need to troubleshoot a hardware issue. Which com-
mand would let you view the kernel ring butter to see what dmesg | less (driver message)
hardware was just added?
Which of the following sections give a brief review of the
syntax used for a particular command or utility within a SYNOPSIS
man page?
In which directory could you add files so that a newly
created user will automatically have them when they first /etc/skel
log in?
Which of the following provides binary files containing
prewritten code elements or interfaces that programmers Libraries
can call when writing Linux programs?
You are running a ping command to see if a particular host
is set up. How would you specify to the ping command ping -c 5 host.example.com
that only five packets get sent to the remote host?
You need to verify that a remote host with a hostname of
dns2.linuxacademy.com is up and running. Which of the
ping dns2.linuxacademy.com
following commands would you enter at the shell prompt
to do this?
1/7
, LPI Linux Essentials Exam Questions and Answers Rated A
While using vi to edit a file in command mode, you try
to use the BACKSPACE key to delete a word, but nothing You have to switch to insert mode.
happens. What's wrong?
Which command would uncompress the contents in the
bunzip2
file 'important.bz2'
How would you add a new user account to a system? useradd newguy
Which software development model is considered to be
Bazaar
less structured than the others?
Which command in a script would display the text "hello
Echo "hello world"
world" to the screen, followed by a new line?
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— There is no execute permission set
Yet it does not run. Why is that?
What protocol is used by network programs/applications
that need very low latency and, therefore, can tolerate a User Datagram Protocol
degree of unreliability?
How would you set permissions on a newly created script
Chmod u+x script.sh
so that it could be executed?
What is the proper syntax for creating a parent directory,
mkdir -p dir1/dir2
followed by a child subdirectory?
You need to create a symbolic link from a file located
at /usr/share/manual to a link in your home directo-
ln -s /usr/share/doc/manual ~/manual
ry named 'manual'. Which command would we use to
achieve this?
While working in the command line console, not running
You can press ALT-F2 or CTRL-ALT-F2 to open an alternate
X Windows, you suddenly need access to another shell to
console screen and access a new shell session.
do another task. You don't want to quit or halt the current
2/7