Computer Science > QUESTIONS & ANSWERS > LPI Linux Essentials Exam Questions (All)
LPI Linux Essentials Exam Questions If you wanted to disable a second network interference in Linux what command would you enter at the shell? - ANS - ifdown eth1 You have been editing a configurat ... ion 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? - ANS - :q! Or Q bang What directory would the ~ character represent? - ANS - The home directory of the currently logged in user. What is the default shell for most Linux distributions - ANS - Bash You need to troubleshoot a hardware issue. Which command would let you view the kernel ring buffer to see what hardware was just added? - ANS - dmesg | less (driver message) Which of the following sections give a brief review of the syntax used for a particular command or utility within a man page? - ANS - SYNOPSIS In which directory could you add files so that a newly created user will automatically have them when they first log in? - ANS - /etc/skel Which of the following provides binary files containing prewritten code elements or interfaces that programmers can call when writing Linux programs? - ANS - Libraries 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? - ANS - ping -c 5 host.example.com 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? - ANS - 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? - ANS - You have to switch to insert mode. Which command would uncompress the contents in the file 'important.bz2' - ANS - bunzip2 How would you add a new user account to a system? - ANS - useradd newguy Which software development model is considered to be less structured than the others? - ANS - Bazaar Which command in a script would display the text "hello world" to the screen, followed by a new line? - ANS - Echo "hello world" Which file(s) are used for DNS resolution? - ANS - /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? - ANS - There is no execute permission set What protocol is used by network programs/applications that need very low latency and, therefore, can tolerate a degree of unreliability? - ANS - User Datagram Protocol How would you set permissions on a newly created script so that it could be executed? - ANS - Chmod u+x script.sh What is the proper syntax for creating a parent directory, followed by a child subdirectory? - ANS - 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? - ANS - 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? - ANS - 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? - ANS - apropos postfix and man -k postix (Must be root) Which directory contains filesystem management utilities such as cp or mv? - ANS - /bin and /usr/bin What utility can we use to find manual pages? - ANS - Man What file might we look at to view our most recently entered shell commands? - ANS - ~/.bash_history What command will bring a list of all running processes on our system? - ANS - Top Which of the following commands would you use to view a default gateway address on your system? - ANS - Route and netstat -r Which commands would you run to see who is currently logged into the system? - ANS - W and who If we wanted to learn about all the available options for the cd command, how might we display its manual page? - ANS - Man cd You have a project where you have to build an email server for your organization of around 200 employees. You are thinking of using a linux system to accomplish this. Would it be possible to achieve this? - ANS - Yes. Linux can be configured to provide email services. We need to find a file named la.txt in our current directory. Which command would we use? - ANS - find ./-name la.txt Which file contains the encrypted passwords for the users on a system? - ANS - /etc/shadow You're using vi to edit a text file in insert mode. You have discovered that you need to replace a large part of a single line of code. The best way to do this is to change from insert mode into replace mode. Given that you are always in insert mode, which steps would you take to enter into replace mode. - ANS - First hit the ESC key, then the shift + R keys. By default, which port does the sshd daemon listen on fo [Show More]
Last updated: 3 years ago
Preview 1 out of 8 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Oct 05, 2022
Number of pages
8
Written in
All
This document has been written for:
Uploaded
Oct 05, 2022
Downloads
0
Views
135
Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·