Pass the LPI LPI Linux Essentials 010-160 Questions and answers with CertsForce

Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions
Questions # 1:

Which of the following commands extracts the contents of the compressed archive file1.tar.gz?

Options:

A.

tar -czf file1.tar.gz


B.

ztar file1.tar.gz


C.

tar -xzf file1.tar.gz


D.

tar --extract file1.tar.gz


E.

detar file1.tar.gz


Expert Solution
Questions # 2:

Which of the following devices represents a hard disk partition?

Options:

A.

/dev/ttyS0


B.

/dev/sata0


C.

/dev/part0


D.

/dev/sda2


E.

/dev/sda/p2


Expert Solution
Questions # 3:

Which of the following permissions are set on the/tmp/directory?

Options:

A.

rwxrwxrwt


B.

------rwX


C.

rwSrw-rw-


D.

rwxrwS---


E.

r-xr-X--t


Expert Solution
Questions # 4:

Which of the following commands puts the lines of the file data.csv into alphabetical order?

Options:

A.

a..z data.csv


B.

sort data.csv


C.

abc data.csv


D.

wc -s data.csv


E.

grep --sort data.csv


Expert Solution
Questions # 5:

Which command adds the new usertuxand creates the user’s home directory with default configuration

files?

Options:

A.

defaultuser tux


B.

useradd –m tux


C.

usercreate tux


D.

useradd –o default tux


E.

passwd –a tux


Expert Solution
Questions # 6:

The current directory contains the following file:

-rwxr-xr-x 1 root root 859688 Feb 7 08:15 test.sh

Given that the file is a valid shell script, how can this script be executed? (Choose two correct answers.)

Options:

A.

run test.sh


B.

${test.sh}


C.

cmd ./test.sh


D.

./test.sh


E.

bash test.sh


Expert Solution
Questions # 7:

Which of the following DNS record types hold an IP address? (Choose two.)

Options:

A.

NS


B.

AAAA


C.

MX


D.

A


E.

CNAME


Expert Solution
Questions # 8:

Which of the following commands creates the ZIP archive poems.zip containing all files in the current directory whose names end in .txt?

Options:

A.

zip *.txt > poems.zip


B.

zcat *.txt poems.zip


C.

zip poems.zip *.txt


D.

zip cfz poems.zip *.txt


E.

cat *.txt | zip poems.zip


Expert Solution
Questions # 9:

Which of the following statements are true regarding a typical shell script? (Choose two.)

Options:

A.

It has the executable permission bit set.


B.

It starts with the two character sequence #!.


C.

It is located in /usr/local/scripts/.


D.

It is located in /etc/bash/scripts/.


E.

It is compiled into a binary file compatible with the current machine architecture.


Expert Solution
Questions # 10:

The file script.sh in the current directory contains the following content:

#!/bin/bash echo $MYVAR

The following commands are used to execute this script:

MYVAR=value

./script.sh

The result is an empty line instead of the content of the variable MYVAR. How should MYVAR be set in order to make script.sh display the content of MYVAR?

Options:

A.

!MYVAR=value


B.

env MYVAR=value


C.

MYVAR=value


D.

$MYVAR=value


E.

export MYVAR=value


Expert Solution
Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions