General LPI Study Material Flashcards
Which of the following does Raspbian Linux run on?
Raspberry
Which of the following is an example of embedded Linux?
Red Hat Linux
Which of the following programs on a Linux system could you use as a replacement
for Microsoft Word?
Pages
Which of the following is an American non-profit organization devoted to
expanding the range of creative works available for others to build upon legally and
to share?
Open Source Non-profit
What is the generic name given to the action of protecting shell meta-characters
from being treated specially by the shell?
Quoting
Which of the following is a valid option for a typical command to get its built-in
usage information?
–help
Which option will cause the echo command NOT to output a trailing newline?
-n
Which of the following commands will output a list of all of the file names under
your home directory and all subdirectories with file names ending with .pdf?
find ~-name “* pdf’
Your current present working directory is /home/jason/documents/. You just
entered cd .. into the command line and then enter pwd. What output do you
receive?
/home/jason
Which of the following is NOT a valid rule in naming a variable?
Variable names must start with numbers
What is the proper command to use to compress the file filename.txt into the zip
archive called myfile.zip?
zip myfile.zip filename.txt
What statement is used to get input from the terminal when a shell script is being
run?
read
Consider the following script:
#!/bin/bash
ip=
‘ route -n | grep UG | tr -s “ “I cut -f 2 - o « s”
echo “Checking to see if $ip is up..
ping -c 5 $ip
Which of the following would be the first line displayed to the screen when the script is
executed by the user?
Checking to see if ipaddress is up..
Which option can be used with tail to print the last 10 lines of a file and then keep
printing any new lines that may be added continuously?
-n
Which command is used to make a shell variable known to subsequently executed
programs?
export
What option can be used with cat to display line numbers with the text of a file to
the screen?
-n
Which of the following commands will create an archive file, named backup.tar,
containing all the files from the directory /home?
tar -cf backup.tar /home
Which command is used to print the first 10 lines of a file to the display?
head
What does HCL mean?
Hardware Compatibility List
Which of the following is the correct order of a computer’s operation?
(1) The computer waits for user input, (2) The user selects a
command and enters it via the keyboard or mouse, (3) The
computer executes the command
Which of the following directories is often used to store log files?
/var
Which of the following is used as a virtual or pseudo filesystem to provide a tree of
all of the device nodes and drivers in the running kernel?
/dev
Which of the following files holds the definition of the local user accounts?
/etc/passwd
What permissions does foo1.txt have after running “chmod 644 foo1.txt”?
foo1.txt is readable/writeable by the owner
Which of the following commands is used to show the information about a
directory or a symbolic link?
ls-d
A file currently has permissions of 755. Which of the following commands would
change file permission to r-xr–r–?
chmod 544 filename
Which of the following tasks is not performed automatically for a user account
when it is created using the useradd command?
Create the user’s home directory