0% found this document useful (0 votes)
5 views

Prova AWS

Prova da Udemy AWS

Uploaded by

Leonardo Pereira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Prova AWS

Prova da Udemy AWS

Uploaded by

Leonardo Pereira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 54

Which of the following are correct commands for changing the current directory to the user's home

(Choose TWO answers)

O ed/

Your selection is correct

% cd

O cd.

Your selection is correct

cd~

O cd/home
What command would you use to get comprehensive documentation about any command in Linux?

O locate command

O echo command

O getcommand

Your answer is correct

© man command

O help command
What is the output of the following command?

for tokeninab c;do

echo -n ${token};

done

© abc

Correct answer

O abe

O anbnen

O {alb}c}

QO $token$token$token
The output of the program date should be saved in the variable actdat. What is the correct
statement?

© date>Sactdat

O date]actdat

Correct answer

O actdat="date"

O actdat=date

QO setactdat="date'
Which of the following properties of a user account determines whether the user is given
administrator privileges?

QO Its GECOS (name) field is set to "System Administrator"

O lts primary group ID is 0 (zero).

Correct answer

O ltsuserIDis 0 (zero).

© ltsusername is root.

QO ltislisted first in /etc/passwd


Which of the following is a Linux based operating system for use on mobile devices?

O CentOs

O Debian

Your answer is correct

© Android

O ios
The following line is found in which system file?

root:x:0:0::/root:/bin/bash

O /etc/shadow

O /etc/user.conf

O /ust/bin/shadow

Your answer is correct

© /etc/passwd

O /etc/password
Which of the following applications are used to play an MP3 file on a Linux system? (Choose THREE
correct answers.)

O XaraXtreme

O LibreOffice Player

Correct selection

O Banshee

Correct selection

O Amarok

Your selection is correct

Audacious
When typing along command line at the shell, what single character can be used to splita
command across multiple lines?

Your answer is correct

Q \

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

O tar /home backup.tar

Correct answer

O tar-cfbackup.tar /home

@ tar-cf /home backup.tar

O tar -xf backup.tar /home

O tar-xf /home backup.tar


Which is a suitable command to find the next appearance of the word hidden in a man page being
viewed from the command line?

Correct answer

O /hidden

O CTRL-F hidden

O /?hidden

© find hidden
While deleting all files beginning with the letter a there was still the file Access.txt left. Assuming
that it had the correct ownership, why was it not deleted?

O The file Access.txt was hidden.

© Linuxfile names are case sensitive.

O Thefile Access.txt was probably opened by another application.

O rmhad to be called with the option -R to delete all files.

QO Files with extensions need a different treatment.


Which of the following can be used to access the command line?

Your answer is correct

© Terminal

O Firefox

O BIOS

O XWindow

O Xargs
Which of the following commands can be used to change both the owner AND group settings of a
file?

O chgrp

Your answer is correct

© chown

QO chuser

O chmod

O chage
Which of the following software packages is an e-mail server?

© Thunderbird

O eIvP

O Apache

O mysaL

Correct answer

O Postfix
What is the output of the following command?

$ tail -n 20 test.txt

QO The first 20 lines of test.txt.

Your answer is correct

@ The last 20 lines of test.txt including blank lines.

O The last 20 lines of test.txt with line numbers.

O The last 20 lines of test.txt omitting the blank lines.


How is it possible to determine if an executable file is a shell script which is read by Bash?

O Therbitis set.

O Scripts are never executable files.

QO /bin/bash has to be run in debug mode.

Your answer is correct

@ The first line starts with #1/bin/bash.

Q The file must end with .sh.


How can the current directory and its subdirectories be searched for the file named MyFile.xmI?

Your answer is correct

@ find. -name MyFile.xml

O grep MyFilexml | find

O grep -r MyFile.xml .

QO search Myfilexml./

O less MyFilexm!
Which of the following commands increases the number of elements in a directory? (Choose TWO
answers)

O Isnewfile

Correct selection

O mkdir newdirectory

O create newfile

Your selection is correct

touch newfile

O rmdir newdirectory
Which command shows if /usr/bin is in the current shell search path?

O catPATH

O cat$PATH

O echo %PATH%

Your answer is correct

© echo $PATH

QO echo %PATH
What does LAMP mean?

@ Short for Lightweight Access Management Protocol which synchronizes


permissions in a network.

ion of Linux, Apache, MySQL and PHP or other programming

QO The bus ID of an attached USB device that emits light.

O The Linux Advanced Mode Programming Interface which gives advanced capabilities
to application developers.

O Short for lamport-clock which is important in distributed network computing.


Which of the following is a requirement of the GPL license but not the BSD license?

© The GPLIicense requires that any legal disputes be settled with the mediation of the
Free Software Foundation.

O The GPLIicense contains a disclaimer of warranty requiring users not to hold the
software authors liable for any damages.

° Users who modify and distribute the software under the GPL license, must make the
modifications they made, available to the re: nts under the same license.

o The GPL license forbids the removal of copyright and license notices from source
code files that are distributed.
Which command lists all files in the current directory that start with a capital letter?

O IsAz*

O IsAz

O list-uppercase-files

O Is--uppercasefiles

Your answer is correct

© IsiAzr
Which one of the following statements concerning the General Public License (GPL) is true?

O GPL software may not be used to run nuclear reactors or air traffic control systems.

O !fyou change a program you received under the GPL, you must send your changes
to
the original author for approval.

O GPL software may never be sold for money.

QO The GPLis identical to the BSD license.

° The GPL is designed to ensure that the source code of a software remains freely
available.
Which of the following programs is not a graphical web browser?

O Chrome

O Opera

O Konqueror

O Firefox

Your answer is correct

© Links
Which statement about users and user groups is correct?

O User do not have to belong to a user group.

Your answer is correct

@ Every user belongs to a least one user group.

O Agroup can only have one main user.

O There can be only one user group on a system.


Which of the following Linux distributions use the dpkg package management system? (Choose
TWO correct answers.)

O Suse

Correct selection

O Debian

Correct selection

O Ubuntu

Red Hat

O Mandriva
Which commands will archive /home and its content to /mnt/backup? (Choose TWO correct
answers)

Correct selection

O cp-ar/home /mnt/backup

O mv/home /mnt/backup

Correct selection

O tar -cf /mnt/backup/archive.tar


/home

sync -r /home /mnt/backup


Which Linux distribution is used as a basis for the creation of Ubuntu Linux?

O Arch Linux

Your answer is correct

© Debian Linux

O Gentoo Linux

O SUSE Linux

O Red Hat Linux


What is the preferred source for the installation of new applications?

Your answer is correct

© The distribution's package repository

O The vendor's version management system

O ACD-ROMdisk

O Aretail store

O The vendor's website


Which of the following commands moves the directory ~/summer-vacation and its content to ~/
vacation/2011?

QO mv ~/vacation/2011 ~/summer-vacation

© mv-R~/summer-vacation ~/vacation/2011

O mv/home/summer-vacation /home/vacation/2011

O move -R ~/summer-vacation ~/vacation/2011

Correct answer

O mv ~/summer-vacation ~/vacation/2011
Which one of the following is true about Open Source software?

o) The freedom to redistribute copies must include binary or executable forms of the
software but not the source code.

Correct answer

O Open Source software is available for commercial use.

O Open Source software can not be copied for free.

© Open Source software is not for sale.


Which of the following will change the group that is associated with a file?

O chmod -w

Your answer is correct

© chown

O chmod
‘Which command line can be used to search help files that mention the word "copyTM

O copy-help

O whatis copy

Correct answer

O man -k copy

O copyhelp

© mancopy
Which function does a shell program serve?

O It provides a graphical environment.

O Itisresponsible for logging a user into the system.

@ ltreceives user commands and executes them.

O Itis responsible for establishing a connection to another computer.


Which of the following answers are true for cloud computing? (Choose TWO correct answers.)

Your selection is correct

From the business perspective, Cloud Computing means outsourcing or


centralization of IT operations.

[ Cloud Computing is the opposite of green IT; i.e. the use of fossil, non-regenerative
energy for computing.

Correct selection

O Cloud Computing provides new tools to manage IT resources.

O Cloud Computing implies sharing all information with everyone else in ‘the cloud"
Which of the following commands can be used to view a file and do search operations within it while
viewing the contents?

Your answer is correct

@ less

O see

O find

QO report

O grep
Which of the following commands can be used to extract files from an archive?

O tar-vf

Your answer is correct

© tar-xvf

O tar—v

QO tar-e

O tar-evf
What keyword is missing from the following segment of the shell script?
Which command is used to make a shell variable known to subsequently executed programs?

O transfer

O announce

O env

Your answer is correct

@ export
Which of the following commands can be used to create a file?

O mkfile

Your answer is correct

@ touch

O nico

QO create
What is the first character
for file or directory names if they should not be displayed by commands
such as Is unless specifically requested?

O \(backslash)

O _(underscore)

Your answer is correct

© .(dot)
Which one of the following statements concerning Linux passwords s true?

O Passwords may be at most six characters long.

© Al passwords can be decrypted using the system administrator's master password.

O Users cannot change their password once it has been set.

O Passwords may never start with a non-letter.

Correct answer

O Passwords are only stored in encrypted form.


Which command will display the last line of the file foo.txt?

O head -n1foo.txt

Your answer is correct

@ tail -n1foo.txt

O tail foo.txt

O last-n1foo.txt
What two character sequence is present at the beginning of an interpreted script?

O ##

Correct answer

o #

O ##
Which of the following commands will set the variable text to olaf is home? (Select TWO answers)

O text=='olaf is home'

O text=$olaf is home

O S$text="olaf is home'

Your selection is correct

text="olaf is home"

Your selection is correct

text=olaf\ is\ home


Which commands provide help for a specific Linux command? (Choose TWO correct answers.)

O helpme

O whatdoes

Your selection is correct

man

O ask

Your selection is correct

info
How could one search for the file foo.txt under the directory /home?

@ find /home foo.txt

QO find /home -file foo.txt

QO search /home -file foo.txt

Correct answer

O find /home -name foo.txt

O search /home foo.txt


Which of the following commands will display a list of all files in the current directory, including
those that may be hidden?

O Is--hidden

Your answer is correct

O Is-h

O Is-a
What permissions are set on a file with the command chmod 654 file.txt?

Correct answer

O -rw-r-xr—

© drw-rxr--

O d--wxr-x--

O -wxrxex

O -rwxrw---x
Which of the following commands will output all of the lines that contain either the string Freed or
fred? (Choose TWO correct answers)

O grep Iflred' data_file

O grep-vfred data_file

O egrep fred data_file

Your selection is correct

grep '[Flred' data_file


Which of the following statements may be used to access the second command line argument to a
script?

O 's3

Correct answer

O st

© "$ARG2"

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

Your answer is correct

Q@ -n

O -s

O -p
Why is the file data.txt empty after executing sort data.txt > data.txt?

Your answer is correct

@ Because the file gets truncated before sort is executed.

O Because, if data.txt is empty now, it must have been empty before.

O Because sort detects that both files are the same.

(U Because sort cannot sort text files, onlybinary files.

You might also like