simulado_102

Embed Size (px)

Citation preview

  • 8/6/2019 simulado_102

    1/8

    [certificacaolinuxlpi.blogspot.com]Question no:1

    Given the following line from /etc/nsswitch.conf.hosts:files mdns4_minimal [NOTFOUND=return] dns mdns4By default, which file will be queried firts for hostname lookups? (provide thefull path and filename)

    answer:/etc/hosts

    Question no:2

    In the following command and its output, echo $$12942 what is 12942?

    A.the process ID of the last backgrounded commandB.the process ID of the current shellC.the process ID of the echo commandD.the process ID of the last command executed

    answer:B

    Question no:3

    whic commands can you use to change a user's password expiry information?(chosse THREE correct answers.)

    A.chshB.charttrC.usermodD.passwdE.chage

    answer:C.D.E

    Question no:4

    Which of the following looks like a correct entry in the /etc/hosts file.

    A. localhost.localhostmain localhost 172.0.0.1B. localhost 127.0.0.1 localhost.localdomainC.localhost localhost localhomain 127.0.0.1D.127.0.0.1 localhost localdomain localhostE.localhost.localdomain 127.0.0.1 localhost

    Answer:D

    5 - Which protcol uses two (2) TCP/IP ports one of them being port 20 for datatransfer?

    resposta: FTP

    6 - What output will the following command sequence produce?echo '1 2 3 4 5 6'|while read a b c;doecho result $c $b $a;done

    A.result:3 4 5 6 2 1B.result:6 5 4 3 2 1C.result:1 2 3 4 5 6D.result:3 2 1E:result.6 5 4

    res:A

    7 - which of the following is the best way to list all defined shell variables?

    Pgina 1

  • 8/6/2019 simulado_102

    2/8

  • 8/6/2019 simulado_102

    3/8

    [certificacaolinuxlpi.blogspot.com]D.lpr

    resp:A

    14 - Whicj command will set the local machine's timezone to UTC?

    A. date timezone=UTCB. mv /usr/timezone/UTC/etcC. cat UTC > /etc/timezoneD. ln s /usr/share/zoneinfo/UTC/etc/localtime

    resp:D

    The system's timezone may be set by linking /etc/localtime t an appropriate filein which directory?(provide the full path to

    the directory, without any country information)

    resp: /usr/share/zoneinfo/

    15 - What is the purpose of the Sticky Keys feature in X?

    A. To prevent repeated input of a single character if the key is held downB. To assist users who have difficulty holding down multiple keys at onceC. To repeat the input of a single characterD. To ignore brief keystrokes according to a specified time limit

    resp:B

    16 - To est a shell script called myscript, the environment variable FOOBAR mustbe removed temporarily. How can this be

    done?

    A. set a FOOBAR=""B. unset v FOOBAR

    C. env u FOOBAR myscrpitD. env i FOOBAR myscript

    resp:C

    17 - The files in the /etc/skel directory are used by the

    A. passwd commandB. pwconv commandC. useradd command.D. pwunconv command.

    resp: C

    18 - You are using an applicatio that you want to appear on the screen of

    another machine. What environment variable would

    you have to set or edit to achieve this?

    A. DISPLAYB. REMOTEC. REMOTE_XWINDOWD. SCREEN

    resp:A

    19 - Which configuration file does sudo read when determining if a user ispermitted to run applications with root

    privileges?

    A. /etc/sudo.conf

    Pgina 3

  • 8/6/2019 simulado_102

    4/8

  • 8/6/2019 simulado_102

    5/8

    [certificacaolinuxlpi.blogspot.com]parameters)

    resp: lpq

    27 - An administrator wants to determine the geometry of a particular window inX, so she issues the _______ metric command

    and then clicks on the window.

    resp: xwininfo

    39 - Which of the following programs uses the hosts.allow file to perform itsmain task of checking for access control

    restrictions to system services?

    A. fingerdB. tcpdC. xinetdD. inetdE. mountd

    resp:B

    40 - What is the purpose of the dig comand?

    A. to adjust a directory's hidden permissionsB. to perform hostname lookupsC. to search for files on the filesystemD. To ping all known hosts on the current subnetE. to adjust a file's hidden permissions

    resp: B

    41- Which of the following command can be used to activate a specific networkinterface?

    A. netB. ipupC. ifupD. netup

    resp:C

    42- Which of the following configuration files should be modified to set defaultshell variables for all users?

    A. /etc/profileB. /etc/skel/.bashrcC. ~default/.bash_profile

    D./etc/skel/.bash_profileE./etc/bashrc

    resp:A

    43 - What word is missing from the following SQL statement?

    Select count (*)___tablename;

    resp:from

    44-What should the permission settings be for /etc/passwd and /etc/shadow?

    A. /etc/passwd: rwrr /etcshadown:rB. /etc/passwd:r /etc/shadow:rwrr

    C. /etc/passwd: r /etc/shadown:rD. /etc/passwd: rwrr /etc/shadown:rwrr

    Pgina 5

  • 8/6/2019 simulado_102

    6/8

    [certificacaolinuxlpi.blogspot.com]

    resp:A

    45- What command do you use to create an OpenSSH authentication key?

    A. sshadddB. sshagentC. sshdD. sshkeygen

    resp:D

    46 - What is NOT contained in the locale setting of the operating system?

    A. currency symbolB. thousands separatorC. languageD. timezone

    resp:D

    47- For accessibilty assistance, which of the following programs is an onscreenkeyboard?

    A. atkbB. xkbC. xOSKD. GOK

    resp: D

    48 - By default, which directories contentes will be copied to a new user's homedirectory when the account is created,

    passing the m option to the useradd command?

    resp: /etc/skel

    49 - What argument to the name flag of find will match files or directoriesbeginning with a '.'(period)?

    resp: .\*

    49 - Which command should be added to /etc/bash_profile to change the languageof messages rom an internationalised program

    to Portuguese (pt)?(select TWO correct answers)

    A. export LANG="pt"

    B. export LC_MESSAGES="pt"C. export ALL_MESSAGES="pt"D. export MESSAGE="pt"E. export "LANGUAGE="pt"

    resp:A.B

    50 - Each entry in a crontab must end with what character?

    A. tabB. spaceC. backslashD. newline

    resp:D

    Pgina 6

  • 8/6/2019 simulado_102

    7/8

    [certificacaolinuxlpi.blogspot.com]

    51- Which directory in a user's home contains configurtion file and key ringsfor GPG?

    A. ~/gpg.d/B. ~/.gpg/

    C. ~/gnupg/D. /etc/gnupg/

    resp:c

    52- Which of the following words is used to restric the records that arereturned from a SELECT query based on a supplied

    criteria for the values in the record?

    A.WHEREB.IFC.FROMD.LIMIT

    resp:A

    53- Which of the following SQL statements will select the fields name andaddress from the contacts table?

    A. SELECT name addres FROM contacts;B. SELECT (name address) FROM contacts;C. SELECT (name,address) FROM contacts;D. SELECT name addres FROM contacts;

    resp:D

    54- The_________command is used to print the network connections, routingtables, and interface statistics.

    resp: netstat

    55- What word will complete an if statement in bash such as the following:

    if [x "$file"]; the echo $file ____

    (please provide the missing word only)

    resp: fi

    56- Which of the following are commnonly used Main Tranfer Agent (MTA)applications?(Please select THEREE correct answers)

    A.eximB. procmailC. smtpdD. sendmailE.postfix

    resp: A.D.E

    57- Please specify the directory containing the configuration file for the CUPS

    printing system.(Provide the full path to the

    Pgina 7

  • 8/6/2019 simulado_102

    8/8

    [certificacaolinuxlpi.blogspot.com]directory)

    resp: /etc/cups

    58 - What word is missing from the following SQL statement?update tablename ____ fieldname='value' where id=909;

    resp: set

    59 - Which file specifies the user account can NOT submit jobs via at or batch?(provide the full path and filename)

    resp: /etc/at.deny

    60 - The legacy program for sending files to the print queues from the commandline is:

    A. lpp

    B. lpdC. lpqD. lpr

    resp:D

    Pgina 8