wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Introducción a Linux

Total questions: 20

Worksheet time: 8mins

Name
Class
Date
1.
¿Qué comando mueve un archivo y lo renombra al mismo tiempo?
a)
mv archivo.txt nuevo.txt
b)
cp archivo.txt nuevo.txt
c)
rename archivo.txt nuevo.txt
d)
mv archivo.txt carpeta/
2.
¿Cuál de los siguientes comandos elimina un archivo sin pedir confirmación?
a)
rm -f archivo.txt
b)
rm archivo.txt
c)
del archivo.txt
d)
remove archivo.txt
3.
¿Qué comando lista todos los archivos, incluso los ocultos?
a)
ls -a
b)
ls
c)
ls -h
d)
list -all
4.

¿Qué comando permite cambiar y regresar al directorio padre?

a)
cd ..
b)
cd /
c)
cd ~
d)
cd ../..
5.
¿Qué comando muestra las últimas 10 líneas de un archivo?
a)
tail -n 10 archivo.txt
b)
head -n 10 archivo.txt
c)
cat -n 10 archivo.txt
d)
less -10 archivo.txt
6.

¿Qué comando crea un archivo nuevo?

a)
touch archivo.txt
b)
new archivo.txt
c)
create archivo.txt
d)
file archivo.txt
7.
¿Qué comando cambia el propietario de un archivo a "usuario1"?
a)
chown usuario1 archivo.txt
b)
chmod usuario1 archivo.txt
c)
usermod usuario1 archivo.txt
d)
setowner usuario1 archivo.txt
8.

¿Qué editor de texto permite salir presionando Ctrl + X?

a)
nano
b)
vi
c)
vim
d)
emacs
9.

¿Qué sintaxis crea los archivos: archivo1.txt archivo2.txt y archivo3.txt de manera breve en un solo comando?

a)
touch archivo{1..3}.txt
b)

touch archivo1.txt archivo2.txt archivo3.txt

c)
create archivo[1-3].txt
d)
new archivo1-3.txt
10.
¿Qué comando muestra las primeras 5 líneas de un archivo?
a)
head -n 5 archivo.txt
b)
tail -n 5 archivo.txt
c)
cat -5 archivo.txt
d)
less +5 archivo.txt
11.
¿Qué comando crea un usuario "juan" con su directorio home automático?
a)
useradd -m juan
b)
adduser juan
c)
mkuser juan
d)
newuser -h juan
12.
¿Qué comando muestra los grupos a los que pertenece el usuario actual?
a)
groups
b)
id
c)
whoami -g
d)
listgroups
13.

¿Qué comando permite crear un directorio anidado (interno y padre), como dir1/dir2?

a)
mkdir -p dir1/dir2
b)
mkdir dir1/dir2
c)
makedir -p dir1/dir2
d)
mkdir -a dir1/dir2
14.

¿Qué comando toma la salida del comando ls y la guarda en el archivos.txt (sobrescribiendo)?

a)
ls > archivos.txt
b)
ls >> archivos.txt
c)
ls | archivos.txt
d)
ls --output archivos.txt
15.

¿Qué comando lista a los usuarios y muestra algunos parámetros de su configuración?

a)
cat /etc/passwd
b)

cat /etc/users

c)
ls /home
d)
users
16.
¿Qué herramienta se usa para automatizar configuraciones en múltiples servidores?
a)
Ansible
b)
Bash
c)
Python
d)
Perl
17.
¿Qué directorio contiene los archivos de configuración del sistema?
a)
/etc
b)
/home
c)
/var
d)
/bin
18.

¿Qué comando busca la palabra "malware" en un archivo.txt?

a)
grep "malware" archivo.txt
b)
find "malware" archivo.txt
c)
search malware archivo.txt
d)
cat malware archivo.txt
19.

¿Qué directorio almacena los documentos y archivos personales de los usuarios en Linux?

a)
/home
b)
/etc
c)
/usr
d)
/var
20.
¿Qué distribución está basada en Debian?
a)
Ubuntu
b)
Arch Linux
c)
Fedora
d)
openSUSE