Cuestionario de Bash

Cuestionario de Bash

Assessment

Flashcard

Computers

Professional Development

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

¿Qué hace el comando `echo $HOME`?

Back

Muestra el valor de la variable de entorno `HOME`

2.

FLASHCARD QUESTION

Front

¿Cuál de las siguientes opciones define correctamente una función en bash? myfunc() { echo "Hola"; } , function = myfunc() { echo "Hola"; } , myfunc[] { echo "Hola"; } , def myfunc() { echo "Hola"; }

Back

myfunc() { echo "Hola"; }

3.

FLASHCARD QUESTION

Front

¿Cuál de estos comandos agregará (append) la salida a un archivo en lugar de sobrescribirlo? ls > archivo.txt, ls >> archivo.txt, ls < archivo.txt, ls | archivo.txt

Back

ls >> archivo.txt

4.

FLASHCARD QUESTION

Front

¿Cuál es la función del operador `|` (pipe) en bash?

Back

Envía la salida de un comando como entrada a otro

5.

FLASHCARD QUESTION

Front

¿Qué comando cuenta el número de líneas en un archivo?

Back

wc -l archivo.txt

6.

FLASHCARD QUESTION

Front

¿Qué hace este alias? alias ll='ls -la'

Back

Crea un acceso directo ll para ejecutar ls -la

7.

FLASHCARD QUESTION

Front

¿Cuál de los siguientes comandos mostrará las primeras 10 líneas de un archivo? tail archivo.txt, head archivo.txt, cut archivo.txt, grep archivo.txt

Back

head archivo.txt

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?