Prova AWS
Prova AWS
O ed/
% cd
O cd.
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
© man command
O help command
What is the output of the following command?
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?
Correct answer
O ltsuserIDis 0 (zero).
© ltsusername is root.
O CentOs
O Debian
© 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
© /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
Audacious
When typing along command line at the shell, what single character can be used to splita
command across multiple lines?
Q \
o
Which of the following commands will create an archive file, named backup.tar, containing all the
files from the directory /home?
Correct answer
O tar-cfbackup.tar /home
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?
© 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
© 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
O Therbitis set.
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
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%
© echo $PATH
QO echo %PATH
What does LAMP mean?
O The Linux Advanced Mode Programming Interface which gives advanced capabilities
to application developers.
© 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
© 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.
° 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
© Links
Which statement about users and user groups is correct?
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 Arch Linux
© Debian Linux
O Gentoo Linux
O SUSE Linux
O ACD-ROMdisk
O Aretail store
QO mv ~/vacation/2011 ~/summer-vacation
© mv-R~/summer-vacation ~/vacation/2011
O mv/home/summer-vacation /home/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 chmod -w
© 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?
[ Cloud Computing is the opposite of green IT; i.e. the use of fossil, non-regenerative
energy for computing.
Correct selection
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?
@ 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
© 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
@ export
Which of the following commands can be used to create a file?
O mkfile
@ 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)
© .(dot)
Which one of the following statements concerning Linux passwords s true?
Correct answer
O head -n1foo.txt
@ 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'
text="olaf is home"
O helpme
O whatdoes
man
O ask
info
How could one search for the file foo.txt under the directory /home?
Correct answer
O Is--hidden
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-vfred data_file
O 's3
Correct answer
O st
© "$ARG2"
o st
Which option will cause the echo command NOT to output a trailing newline?
Q@ -n
O -s
O -p
Why is the file data.txt empty after executing sort data.txt > data.txt?