General LPI Study Material Flashcards

1
Q

Which of the following does Raspbian Linux run on?

A

Raspberry

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following is an example of embedded Linux?

A

Red Hat Linux

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following programs on a Linux system could you use as a replacement
for Microsoft Word?

A

Pages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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?

A

Open Source Non-profit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the generic name given to the action of protecting shell meta-characters
from being treated specially by the shell?

A

Quoting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following is a valid option for a typical command to get its built-in
usage information?

A

–help

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which option will cause the echo command NOT to output a trailing newline?

A

-n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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?

A

find ~-name “* pdf’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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?

A

/home/jason

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which of the following is NOT a valid rule in naming a variable?

A

Variable names must start with numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the proper command to use to compress the file filename.txt into the zip
archive called myfile.zip?

A

zip myfile.zip filename.txt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What statement is used to get input from the terminal when a shell script is being
run?

A

read

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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?

A

Checking to see if ipaddress is up..

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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?

A

-n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which command is used to make a shell variable known to subsequently executed
programs?

A

export

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What option can be used with cat to display line numbers with the text of a file to
the screen?

A

-n

17
Q

Which of the following commands will create an archive file, named backup.tar,
containing all the files from the directory /home?

A

tar -cf backup.tar /home

18
Q

Which command is used to print the first 10 lines of a file to the display?

A

head

19
Q

What does HCL mean?

A

Hardware Compatibility List

20
Q

Which of the following is the correct order of a computer’s operation?

A

(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

21
Q

Which of the following directories is often used to store log files?

A

/var

22
Q

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?

A

/dev

23
Q

Which of the following files holds the definition of the local user accounts?

A

/etc/passwd

24
Q

What permissions does foo1.txt have after running “chmod 644 foo1.txt”?

A

foo1.txt is readable/writeable by the owner

25
Q

Which of the following commands is used to show the information about a
directory or a symbolic link?

A

ls-d

26
Q

A file currently has permissions of 755. Which of the following commands would
change file permission to r-xr–r–?

A

chmod 544 filename

27
Q

Which of the following tasks is not performed automatically for a user account
when it is created using the useradd command?

A

Create the user’s home directory