LPI Linux Essentials 010-150

Ace your homework & exams now with Quizwiz!

If you were a Linux system's administrator and wanted to see who is currently logged into the computer and what programs they are currently running, you can type the ____ command.

w

Which two commands will display the executable paths of commands?

whereis, which

Which command would you type if you wanted to display your username from a Linux command line terminal shell?

whoami

Which of the following would NOT likely be a filename used in Linux? (choose all that apply) A. /dev/xda B. /dev/sda C. /dev/sdb D. /dev/xdb

/dev/xda, /dev/xdb

Which Linux directory usually holds the system configuration files?

/etc

Which file now stores users passwords in the Linux OS?

/etc/shadow

Which of the following directories is where you would find the new mount point for removable media in the Linux OS?

/media

Which of the following directories servers as a mount point for a short-term mounting of additional storage media?

/mnt

Which of the following is considered to be an example of an embedded Linux OS? (choose all that apply)

Android, Tivo,

Which of the following commands is used to search the Whatis database and to display the short descriptions of the specified system command?

apropos

Which text mode tool for Debian based distributions can install software from a Linux system?

apt-get

Which of the following is considered to be the names for the Mac OS GUI interfaces? (choose two)

aqua, cocoa

Which of the following is the default shell found in most Linux distributions?

bash

What are two forms of regular expressions used in Linux?

basic, extended

Which of the following commands will you use to change the permissions set on a file or a directory?

chmod

Which of the following commands will allow you to change the ownership of a file in Linux?

chown

Which of the following commands would you use to change a file's group?

chown

If you were in a root command line and wanted to change the ownership of a file named somefile.txt from ralph to tony, which command would best accomplish this?

chown tony somefile.txt

A Linux terminal window is best described as a

command line interface

The C++ is considered to be a(n) _____ programming language

compiled

Early versions of the Windows OS used _____ multitasking, in which programs can voluntarily give up CPU time to other processes.

cooperative

Which term is considered a play on words and is the practice of offering people the right to freely copy and modify versions of a work with the stipulation that the same rights be preserved in works down the line?

copyleft

If you want to find out the sizes of several of the dot files in a directory, which of the following commands could you use to do this?

ls -la

Which of the following command line tools would you use to provide the most information about your Linux PCs motherboard features?

lspci

Which of the following commands would you use to get USB information attached to a Linux computer?

lsusb

If you wanted to display free and used memory using the command line in your Linux OS, you would use the free -___ command.

m

To have a script send an email automatically, which command would you use to do this?

mail

Which command would you use if you have trouble finding anything inside the Linux command line?

man

Normally, optical discs and USB flash drives are mounted in subdirectories of /mnt or _________

media

Which is a kernel that does everything a kernel is to do in one big process?

monolithic

Which of the following hardware components would be considered the central nervous system of a computer?

motherboard

Which Linux command line tool will allow you to mount a hard disk?

mount

Match the following Linux commands with the correct action. mv rm touch cp

mv - renames files and directories rm - deletes files touch - update the timestamp on files cp - copy files and directories

Which hardware component converts AC power to DC power for a PC?

PSU

Which type of multitasking does a Linux OS use?

Pre-emptive

If a user was in a Linux command line terminal, which symbol would indicate that they were running in root access?

#

Which of the following entries would you use on the first line of a script you are creating in Linux?

#!/bin/sh

You've written a simple shell script that does nothing but launch programs. In order to ensure that the script works with most user shells, what should its first line read?

#!/bin/sh

Complete the following command to redirect both standard output and standard error from the bigprog program to the file out.txt: $ bigprog _____ out.txt

&>

Which two keyboard characters can denote an account with no password?

* !

Which two options can you use with the chown command to change the ownership of an entire directory tree?

--recursive, -r

Which optional parameter would you use with the Linux sort command to ignore case sensitivity?

-f

If you wanted to hide a file from view in a Linux directory, what would you add to the beginning of it to make it not appear?

.

Which single keyboard character represents any single character except in a new line in a regular expression in Linux?

.

What is the filename extension for the bzip2 compression program?

.bz2

Which of the following extensions would you use at the end of the script name?

.sh

John is a Linux systems administrator who has been tasked with the job of investigating a compromised system running a normal Linux desktop OS. He wants to investigate and review the local software, system libraries, and other installed applications on the system. Which of the following directories will he review to accomplish this task?

/sbin

If a Linux system has been properly configured, which directory can any user delete any file?

/tmp

Which of the following directories does Linux store temporary files?

/tmp

Which of the following Linux folders would usually NOT store programs?

/usr/cat/info

Which of the following directories contains dynamically changing files, distributed across different directories?

/var

n which directory would you most likely find the print spool files in a Linux OS?

/var

Which of the following directories stores package database information?

/var/lib

If you wanted to ensure that there were certain temporary files NOT deleted during a reboot, where would you most likely place them in a properly configured Linux OS?

/var/tmp

If a Linux system has no programs demanding CPU time what number would best represent the load average on that computer?

0

Using the image below, what does the x character represent?

An encrypted password stored in the /etc/shadow file

Which company is given credit for creating the Unix OS?

AT&T

ASCII supports _____ unique characters.

128

How many primary partitions can the GUID partitioning method support?

128

How many pins would you find on one end normal HDMI cable?

19 pins

You work as a Network Administrator for McNeil Inc. The company has a Linuxbased network. You are a root user on the Red Hat operating system. You want to know how many words are present in the file named file1.txt. You type the following command on the terminal:wc file1.txtThe command output displays the following: 40 245 1800 file1.txt How many words are present file1.txt?

245

Which of the following is the port number for the LDAP protocol?

389

When a new directory is created, its permissions is always subtracted from the number ______ (rwxrwxrwx).

777

Which of the following redirection operators appends a program's standard output to an existing file, without overwriting that file's original contents?

>>

Which Linux help command line tool is intended to be a quick reference on various programs and configuration files in a Linux installation?

?

Which type of file is nano LEAST likely to be useful for examining or editing?

A LibreOffice word processing document

Which of the following is considered to be one of the differences between a Linux OS and the Mac OS?

Linux's GUI is based on the X window system whereas OS X's is not

What type of files are you most likely to find in the /usr/lib, according to the FHS?

Library files

Who created Linux?

Linus Torvalds

Which of the following open source software includes various packages such as a word processor, spreadsheet, presentations, graphics, and databases?

Apache OpenOffice

Which of the following are considered Linux Web Server programs? (choose all that apply)

Appache HTTPD, Nginx

Which of the following program phases is usually a product that is delivered free of charge for users to find and receive feedback on any bugs and issues?

Beta

Which of the following applications is an open source video editor?

Blender

Which programming language is most of the Linux kernel written?

C

Which keyboard combination would you press to move your screen cursor to the end of a command line? A. Ctrl + Tab B. Ctrl + E C. Ctrl + Alt + Shift D. Ctrl + Enter

Ctrl + E

Which of the following applications would you most likely find installed on a desktop computer running Linux?

Evolution

Which keystrokes invoke the pico or nano search function? (choose two)

F6, Ctrl + W

Which file hierarchy structure was created to give a standardization to the Linux filesystem structure?

FHS

True or False: The Linux kernel is a break off of the Mac OS kernel.

False

True or False: Unicode is useful for encoding most European languages but not Asian languages.

False

True or false: A user types myscript laser.txt to run a script called myscript. Within myscript, the $0 variable holds the value laser.txt .

False

What is another term for Linux distribution?

Flavor

Which of the following are all considered Linux GUI desktop environments? (choose all that apply)

Gnome, KDE, XFce

Which of the following IEEE standards is based upon base-2 values?

IEEE-1541

How would you remove two lines of text from a file using the Vi text editor?

In command mode, position the cursor on the first line and type 2dd

You type mkdir one/two/three and receive an error message that reads, in part, no such file or directory. What can you do to overcome this problem?

Issue three separate mkdir commands: mkdir one, then mkdir one/two, and then mkdir one/two/three

What is the effect of the following short script, cp1, if it's called as cp1 big.c.big.cc? #!/bin/bash cp $2 $1

It copies the contents of big.cc to big.c, eliminating the old big.c

Which filesystem was developed by the IBM Corporation and is now being used in some Linux operating systems?

JFS

What is a partition called that is contained in an extended partition?

Logical

Which of the following would be considered a proprietary operating system?

Mac OS, Windows OS

Which command would reveal the total RAM statistics about your Linux system?

Mem

Which OS is Andrew Tannenbaum given credit for creating?

Minix

f you wanted to enable one Linux computer to access files stored on another Linux computer? Which of the following network protocols is the best choice?

NFS

If you see a .odt file extension on a file inside Linux, what type of document would this most likely be?

OpenDocument Text

Which command line tool would you place at the end of the statement below to see a list of all directories on you Linux computer? echo $

PATH

Which of the following are the two major Linux package management systems?

RPM, dpkg

Which of the following would you use the yum command to install or upgrade applications? (choose all that apply)

Red Hat, Fedora, CentOS

Which of the following are considered RPM-based Linux distributions?

Red Hat, Fedora, CentOS, SUSE Enterprise

Who is given credit for founding the GNU Project back in September 1983?

Richard Stallman

Which of the following is considered the most powerful account in Linux?

Root account

Which of the following users are allowed to change the ownership of a file?

Root user

Which of the following applications allows Linux computers to participate in Microsoft Windows Workgroups and Domains?

Samba

Which Linux distribution was the first to be released in 1993?

Slackware

If you were to type the following in a Linux command line terminal, what type of results might you receive?

a list of the users on the Linux computer

Which of the following components would NOT be considered a major component essential to using a modern-day desktop computer?

Speakers

_____________files are those that control how the computer operates.

System

The MBR partitioning method cannot support disks that are larger than 2 _______ in size.

TB

Which key would you press on your keyboard to complete a command with a minimal number of keystrokes in a Linux command terminal?

Tab

Which of the following type of user information might you find in the /etc/passwd file?

The UID, the user's account home directory, the path to the user's default text-mode shell

Which of the following symbolic representation can you pass to chmod to give all users execute access to a file, without affecting other permissions?

a+x

What is the purpose of conditional expressions in shell scripts?

They enable the script to take different actions in response to variable data

You want to install an open source and free email client on your Linux desktop system, which of the following applications is best suited to this?

Thunderbird

Which of the following would be reasons you might want to partition your hard drive? (choose two)

To dual boot a PC for two separate, To partition your file system data from the swap space.

True or False: Many (not all) configuration files use a hash mark (#) to identify comment lines?

True

True or False: Valid looping statements in Bash include for, while, and until.

True

True or False: You can create a symbolic link from one low-level filesystem to another.

True

True or False: You've typed rmdir junk to delete the junk directory, but this command has failed because junk contains word processing files. To do the job, you type rm -r junk.

True

True or false: It is very common to not see the GUI X desktop installed on a Linux computer being used as a server.

True

Which of the following is NOT considered a normal way to connect a video monitor to a PC?

USB

Which of the following two are considered to be pre-release versions of software applications known to contain bugs and issues?

alpha, beta

Which of the following is the BEST characteristic of all open source software?

Users are permitted to redistribute altered versions of the original software.

Which of the following is usually non-existent to Linux operating systems?

Viruses

You are currently working on a Linux computer. You forgot the syntax of the tar command in order to take a backup of a directory. Which of the following measures will you take to obtain information about the tar command without leaving the command line?

Visit the man page of the command

Which character that represents the start of a line in a regular expression?

^

If you wanted to view all files (including hidden files and directories), in the current directory in Linux, you would type ls -___

a

which of the following would not be considered a duty of the linux kernel

creating the menus and folders in a GUI program

If you were inside of an Ubuntu Linux distribution, which keyboard combination would you use to return back to GUI interface from a virtual terminal screen?

ctrl + alt +f7

Which of the following options would provide an interface between a hardware device and a software application?

device driver

Firefox is to Chrome as rpm is to _____.

dpkg

Which command line prompt would you use to print arguments onto a terminal screen in Linux?

echo

Which command would you use to display prompts for a user in a shell script?

echo

Which of the following would you NOT use to list the capabilities and details of your Linux computer's CPU?

echo cpu

Which of the following statements would you need to include in a case statement to denote the end of the case statement?

esac

Which of the following open source applications can be used as an email client? (choose all that apply)

evolution, thunderbird, geary, mutt

Once a shell script has been written, it must be made________in order to run it.

executable

Which version of the ext filesystem is the newest used in Linux today?

ext4

Which of the following actions is performed when a file is uncompressed?

extract

True or False: If you use the Linux GUI Windows X mode, you have no way of accessing any type of command line interface.

false

True or false: GUI text editors for ASCII are superior to text-mode ASCII text editors because the GUI editors support underlining, italics, and multiple fonts.

false

True or false: Linux stores information on groups in the /etc/groups file.

false

True or false: The only account that has access to the command chmod is the root account.

false

True or false: To compress files archived with the zip command, you must use an external compression program such as gzip or bzip2 in a pipeline with zip.

false

True or false: You can easily damage your Linux installation by mistyping an rm command when you log into your regular account.

false

rue or false: The following script launches three simultaneous instances of the terminal program. #!/bin/bash terminal terminal terminal

false

Which of the following command line tools would you use to partition a hard drive?

fdisk

In the simplest terms, everything in the Linux OS is considered to be a ________

file

Which command line tool would you use to show the total amount of free space available on your Linux hard disk?

free

Which of the following Linux commands will print lines from the file world.txt that contain matches to changes and changed?

grep change[ds] world.txt

What is another name for a bash shell script that you might see?

hashpling

Which command line tool would you use to view all the commands in your terminal command line history?

history

Which command line tool would you use to assign a static IP address in a Linux system?

ifconfig

Which of the following Linux command line help tools is more modern and supports hyperlinking?

info

Which type of programming language is converted into machine code at the time they are run?

interpreted

which of the following is considered to be the core part of any Linux operating system

kernel

Which command would you use to create a symbolic link to a file in Linux?

ln

Which of the following terms would you find a the beginning of a Linux text-mode login prompt?

login

The gzip, bzip2, and xz programs all perform_______compression, in which the decompressed data exactly matches the original pre-compression data.

lossless

Which of the following commands would you type to rename a file called newfile.txt to afile.txt

mv newfile.txt afile.txt

You want to copy a directory, MyFiles, to a USB flash drive that uses the FAT filesystem. The contents of MyFiles are as follows: $ ls -l MyFiles/ total 276 -rw-r--r-- 1 jen users 129840 Nov 8 15:13 contract.odt -rw-r--r-- 1 rod users 42667 Nov 8 15:12 outline.pdf -rw-r--r-- 1 sam users 105979 Nov 8 15:12 Outline.PDF The USB flash drive is mounted at /media/usb, and so you type cp -a MyFiles/media/usb. What problem will occur when you attempt to copy these files?

one file will be missing on the USB flash drive

Which of the following consists of supporting files for an application that are installed on a Linux computer?

package

A _____ is when the standard output from one program is redirected as the standard input to a second program.

pipe

What does the command line prompt pwd mean?

present working directory

What is the purpose of Linux distributions using a longer release cycle?

provide a more stable environment for users

What could you type in a Linux command line terminal shell to see a list of all process IDs (PID) on your computer?

ps

What three character symbolic string represents the read and executes permissions but no write permissions?

r -x

To uninstall an application using the apt-get command, you would type apt-get _____.

remove

Which of the following actions does the find command perform?

searching a file in a directory

You were creating a file name File1 and you accidentally used the word Debian in the file. You now need to replace the word Debian with RPM. Which Linux command would be the best in accomplishing this task?

sed

After using a text editor to create a shell script, what step should you take before trying to use the script by typing its name?

set one or more executable bits using chmod

Which type of software is similar to commercial software in that it is copyrighted, but a user is given a trial period before they must begin paying to use the software?

shareware

Using the image below, which Linux command line tool would give you this list in an alphabetic order?

sort

What are the two types of outputs that can result using basic redirection operators in Linux?

standard output, standard error

What are the two types of FHS files found in the Filesystem Hierarchy Standard?

standard, variable

Which of the following type of permission protects a file from being deleted by another user?

sticky bit

You want to run the following command inside your Linux terminal: iptables -L but know you will need to have root access to do so. If you are logged in under a basic user account, which command could you add to give you root access for just this command?

sudo iptables -L

Which letter denotes that a sticky bit has been set on a file?

t

Which of the following letters would tell you that both a sticky bit and SGID bit have been set on a directory?

t

You want to set the sticky bit on an existing directory, subdir, without otherwise altering its permissions. To do so, you should type chmod a+___

t

Which of the following Linux command line tools supports both gzip and bzip2 compression?

tar

Which of the following command line tools would be the best to use when compressing more than two files inside a Linux system?

tar

Which of the following commands restores a compressed backup file named homebkup.tar.gz in the current directory of a Linux computer?

tar -zxvf homebkup.tar.gz

If you wanted to create or update a file from the Linux command line, which tool would you use?

touch

Which of the following commands will allow you to update access time on a file?

touch

True or false: A file with the permissions of 755 can be read by any user on a computer, assuming all users can read the directory in which it resides.

true

True or false: The find command enables you to locate files based on their sizes.

true

True or false: You can set a directory's time stamps with the touch command.

true

Which of the following describes a system that uses 32-bit processing?

x86

You are a brand new network technician at a company that uses Linux based operating systems. You want to install the web browser Firefox on your Linux system, which of the following commands will help you accomplish this task?

yum install firefox

Which of the following commands will install the GIMP software application on an RPM-based Linux OS?

yum install gimp

Which of the following keyboard strokes would you use to connect two or more commands in Linux?

|


Related study sets

Anatomy Midterm Review Questions

View Set

The Dark Romantics in American Literature

View Set

Lecture 5: Molecules Cross Cell Membranes in Many Ways

View Set

Physiology Ch 7, 8, 11, 12 Online Quizzes

View Set

Ch 1. Principles of Linguistic Theory

View Set

Unit 3 and 4 Ap Classroom Progress Check MCQ Questions Ap World

View Set