proba tema 10.docx
TRANSCRIPT
8/11/2019 Proba Tema 10.docx
http://slidepdf.com/reader/full/proba-tema-10docx 1/7
Arrancado o Martes, 7 de Outubro do 2014, 10:51
Estado Finalizada
Completada en Martes, 7 de Outubro do 2014, 10:58
Tempo levado 7 mins 40 segundos
Cualificación 5,00 alén dun máximo de 10,00 (50%)
Pregunta 1
CorrixirPuntuar 1,00 fóra de 1,00
Indicar a pregunta
Texto da pregunta
Select the line that best represents what permissions the /etc/passwd file should have
Selecciona unha:
a. -rw-r--r-- 1 root root 531 Apr 3 12:36 /etc/passwd
b. all answers listed are not correct
c. -rw-r--r-- 1 1 1 531 Apr 3 12:36 /etc/passwd
d. -rw------- 1 root root 531 Apr 3 12:36 /etc/passwd
Comentarios
A súa resposta é correcta.
The correct answer is: -rw-r--r-- 1 root root 531 Apr 3 12:36 /etc/passwd
Pregunta 2
IncorrectoPuntuar 0,00 fóra de 1,00
Indicar a pregunta
Texto da pregunta
The command echo $! will produce what output?
8/11/2019 Proba Tema 10.docx
http://slidepdf.com/reader/full/proba-tema-10docx 2/7
Selecciona unha:
a. the exit status of the last command
b. the exit status of the last background command
c. the process id of the current shelld. the process id of last background command
Comentarios
A súa resposta é incorrecta.
The correct answer is: the process id of last background command
Pregunta 3
IncorrectoPuntuar 0,00 fóra de 1,00
Indicar a pregunta
Texto da pregunta
You want the default permissions for your files to be -rw-r-----. How must you setumask?
Selecciona unha:
a. 027
b. 640
c. 038
d. 037
Comentarios
A súa resposta é incorrecta.
The correct answer is: 027
Pregunta 4
IncorrectoPuntuar 0,00 fóra de 1,00
8/11/2019 Proba Tema 10.docx
http://slidepdf.com/reader/full/proba-tema-10docx 3/7
Indicar a pregunta
Texto da pregunta
What umask will set the file permissions on a newly created file to -rw-r--r-- (644)?
Selecciona unha:
a. 0002
b. 0022
c. 0246
d. 0224
Comentarios
A súa resposta é incorrecta.
The correct answer is: 0022
Pregunta 5
CorrixirPuntuar 1,00 fóra de 1,00
Indicar a pregunta
Texto da pregunta
What would the following line accomplish if run as root?
chown -R bert /home/bert/*
Selecciona unha:
a. Nothing, this command is invalid
b. It would set ownership of all files and subdirectories in /home/bert to bert
c. It would change user ownership of all files in /home/bert to bert
d. It would set the group ownership of the directory /home/bert to bert
8/11/2019 Proba Tema 10.docx
http://slidepdf.com/reader/full/proba-tema-10docx 4/7
Comentarios
A súa resposta é correcta.
The correct answer is: It would set ownership of all files and subdirectories in
/home/bert to bert
Pregunta 6
IncorrectoPuntuar 0,00 fóra de 1,00
Indicar a pregunta
Texto da pregunta
You have read/write permission on an ordinary file foo. You have just run ln foo bar.What would happen if you ran rm foo?
Selecciona unha:
a. foo and bar would both be removed
b. foo would be removed. bar would still exist but would be unsuable
c. Both foo and bar would remain accesible
d. foo would be removed while bar would remain accessible
Comentarios
A súa resposta é incorrecta.
The correct answer is: foo would be removed while bar would remain accessible
Pregunta 7
CorrixirPuntuar 1,00 fóra de 1,00
Indicar a pregunta
Texto da pregunta
8/11/2019 Proba Tema 10.docx
http://slidepdf.com/reader/full/proba-tema-10docx 5/7
Which shell built-in command can be used to create a shorcut or pseudonym for alonger command?
Assume a modern bourne-like shell, such as bash.
Selecciona unha:
a. ln
b. link
c. sudo
d. alias
Comentarios
A súa resposta é correcta.
The correct answer is: alias
Pregunta 8
CorrixirPuntuar 1,00 fóra de 1,00
Indicar a pregunta
Texto da pregunta
Which command will print out the attributes of the file foobar?
Selecciona unha:
a. ls --attr foobar
b. lsattr foobar
c. printattr foobar
d. fileattr foobar
Comentarios
A súa resposta é correcta.
The correct answer is: lsattr foobar
Pregunta 9
8/11/2019 Proba Tema 10.docx
http://slidepdf.com/reader/full/proba-tema-10docx 6/7
CorrixirPuntuar 1,00 fóra de 1,00
Indicar a pregunta
Texto da pregunta
Which chown command will change the ownership to foo and the group to bar on a filenamed biglist?
Selecciona unha:
a. chown --user foo --group bar biglist
b. chown foo:bar biglist
c. chown -u foo -g biglist
d. chown foo/bar biglist
Comentarios
A súa resposta é correcta.
The correct answer is: chown foo:bar biglist
Pregunta 10
IncorrectoPuntuar 0,00 fóra de 1,00
Indicar a pregunta
Texto da pregunta
The sticky bit is usually set on
Selecciona unha:
a. log files
b. /home
c. /var/log
d. /tmp
8/11/2019 Proba Tema 10.docx
http://slidepdf.com/reader/full/proba-tema-10docx 7/7
Comentarios
A súa resposta é incorrecta.
The correct answer is: /tmp