
Conocimientos de Shell Scripting en Bash
Authored by ALEJANDRO MARTÍNEZ GONZALEZ
Computers
11th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
¿Cómo se declara una variable en bash?
VARIABLE==valor
VARIABLE=valor
$VARIABLE=valor
valor=VARIABLE
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
¿Qué palabra reservada va inmediatamente después de la condición en una sentencia if ?
else
do
elif
then
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
¿Cómo comparo que la variable LIGHT sea mayor a 100?
LIGHT > 100
LIGHT -eq 100
LIGHT -gt 100
LIGHT + 100
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
¿Qué estructura contiene los comandos que deben ejecutarse en for, while o until ?
do
done
{
}
do
od
do
end
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
En un bucle until...
La condición debe ser falsa para continuar el bucle.
La condición se evalúa al final del bucle.
El bucle se ejecuta un número fijo de veces.
La condición debe ser verdadera para continuar el bucle.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
¿Cuál es la estructura básica de un case en bash?
case $OP in
1)
comandos
;;
esac
case $OP in
1)
do
comandos
done
;;
case $OP in
1)
then
comandos
;;
esac
case $OP then
1)
comandos
;;
esac
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Tengo que buscar "algo" dentro del archivo "cosas.txt". ¿Qué uso?
grep "cosas.txt" algo
grep "algo" cosas.txt
find / -e "algo" cosas.txt
search "algo" in cosas.txt
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?