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