
Cuestionario de Bash
Flashcard
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

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
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?